Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / DocumentScope.cs / 1305376 / DocumentScope.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; using System.Xml.XPath; internal class DocumentScope { protected NamespaceDecl scopes; internal NamespaceDecl Scopes { get { return this.scopes; } } internal NamespaceDecl AddNamespace(string prefix, string uri, string prevDefaultNsUri) { this.scopes = new NamespaceDecl(prefix, uri, prevDefaultNsUri, this.scopes); return this.scopes; } internal string ResolveAtom(string prefix) { Debug.Assert(prefix != null && prefix.Length > 0); for (NamespaceDecl scope = this.scopes; scope != null; scope = scope.Next) { if (Ref.Equal(scope.Prefix, prefix)) { Debug.Assert(scope.Uri != null); return scope.Uri; } } return null; } internal string ResolveNonAtom(string prefix) { Debug.Assert(prefix != null && prefix.Length > 0); for (NamespaceDecl scope = this.scopes; scope != null; scope = scope.Next) { if (scope.Prefix == prefix) { Debug.Assert(scope.Uri != null); return scope.Uri; } } return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HiddenFieldPageStatePersister.cs
- SqlUtils.cs
- printdlgexmarshaler.cs
- Semaphore.cs
- TableLayoutColumnStyleCollection.cs
- RegexParser.cs
- FilterElement.cs
- PointKeyFrameCollection.cs
- MetadataExporter.cs
- SafeNativeMethods.cs
- WeakReadOnlyCollection.cs
- UdpChannelFactory.cs
- GifBitmapDecoder.cs
- UserPreferenceChangedEventArgs.cs
- HtmlTernaryTree.cs
- PageParser.cs
- UIHelper.cs
- TriggerAction.cs
- SqlDataSourceEnumerator.cs
- StringCollectionMarkupSerializer.cs
- EntityAdapter.cs
- NullableLongMinMaxAggregationOperator.cs
- MenuItemStyleCollection.cs
- CollectionMarkupSerializer.cs
- PeerNameRegistration.cs
- ResourceReader.cs
- TrackingProfile.cs
- CompiledXpathExpr.cs
- StringBlob.cs
- StyleSelector.cs
- EventLogLink.cs
- DataGridViewTextBoxColumn.cs
- SmtpNtlmAuthenticationModule.cs
- NamespaceCollection.cs
- DataListItem.cs
- Exceptions.cs
- FactoryId.cs
- MenuItemCollection.cs
- ECDsaCng.cs
- BigInt.cs
- XamlFigureLengthSerializer.cs
- TypeLibConverter.cs
- SByteStorage.cs
- BorderGapMaskConverter.cs
- SafeCryptContextHandle.cs
- CollectionConverter.cs
- WebExceptionStatus.cs
- AddingNewEventArgs.cs
- PageContent.cs
- TemplatedWizardStep.cs
- ServiceHttpModule.cs
- TemplateControl.cs
- RepeatInfo.cs
- XmlReflectionMember.cs
- ControlUtil.cs
- AdornerPresentationContext.cs
- ToolStripComboBox.cs
- CodeCompileUnit.cs
- BitmapCodecInfoInternal.cs
- DataGridHelper.cs
- DrawingCollection.cs
- RegisteredDisposeScript.cs
- ExceptionUtility.cs
- ProjectionPathBuilder.cs
- ErrorCodes.cs
- XmlSchemaSubstitutionGroup.cs
- PbrsForward.cs
- PageTrueTypeFont.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- TextViewBase.cs
- IOThreadScheduler.cs
- NetTcpSecurityElement.cs
- Exception.cs
- ParallelEnumerable.cs
- SchemaCollectionCompiler.cs
- ValueUtilsSmi.cs
- DocumentViewerBase.cs
- ColumnPropertiesGroup.cs
- EntityClassGenerator.cs
- XmlWhitespace.cs
- PolicyStatement.cs
- XPathScanner.cs
- ToolStripComboBox.cs
- WebPartZone.cs
- recordstatefactory.cs
- UdpSocket.cs
- WebUtil.cs
- InsufficientMemoryException.cs
- Point3D.cs
- TabPanel.cs
- ScrollViewer.cs
- HttpModuleAction.cs
- WindowsFont.cs
- CompensatableSequenceActivity.cs
- InputReferenceExpression.cs
- Console.cs
- PolyLineSegment.cs
- ToolBar.cs
- SimpleApplicationHost.cs
- InputBinder.cs