Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / DocumentScope.cs / 1 / 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 (Keywords.Equals(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 (Keywords.Compare(scope.Prefix, prefix)) { Debug.Assert(scope.Uri != null); return scope.Uri; } } return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 (Keywords.Equals(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 (Keywords.Compare(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
- AncestorChangedEventArgs.cs
- RedirectionProxy.cs
- XmlNodeComparer.cs
- WriteLine.cs
- StaticTextPointer.cs
- ACE.cs
- WebControlsSection.cs
- XmlSchemaChoice.cs
- SqlCacheDependency.cs
- QuerySettings.cs
- XmlnsCompatibleWithAttribute.cs
- VisualStateManager.cs
- BamlLocalizabilityResolver.cs
- Transactions.cs
- CompilerState.cs
- TabRenderer.cs
- RenderOptions.cs
- WebPartTransformerAttribute.cs
- WriterOutput.cs
- StringArrayConverter.cs
- SizeConverter.cs
- DurableInstanceContextProvider.cs
- SessionStateSection.cs
- TemplateNodeContextMenu.cs
- HtmlTableCellCollection.cs
- CryptoApi.cs
- ObjectListCommandsPage.cs
- RowType.cs
- TreeViewImageGenerator.cs
- WebRequestModulesSection.cs
- RegisteredScript.cs
- MimeFormatter.cs
- BordersPage.cs
- HttpBindingExtension.cs
- UnmanagedHandle.cs
- Pts.cs
- DbProviderManifest.cs
- ContourSegment.cs
- ExclusiveTcpListener.cs
- MobileListItemCollection.cs
- Html32TextWriter.cs
- SoapInteropTypes.cs
- UniqueEventHelper.cs
- HttpCacheParams.cs
- DBConnection.cs
- HtmlImage.cs
- ParallelEnumerable.cs
- FrameworkContentElementAutomationPeer.cs
- UpdateProgress.cs
- BooleanStorage.cs
- ServiceBusyException.cs
- SoapAttributeOverrides.cs
- UdpConstants.cs
- TextPattern.cs
- DesignerLoader.cs
- OdbcPermission.cs
- DynamicQueryStringParameter.cs
- RSACryptoServiceProvider.cs
- ConversionContext.cs
- ParallelLoopState.cs
- ProcessProtocolHandler.cs
- ListViewTableRow.cs
- VBCodeProvider.cs
- ResponseStream.cs
- MissingMethodException.cs
- ParserExtension.cs
- COM2EnumConverter.cs
- SchemaCollectionCompiler.cs
- StorageFunctionMapping.cs
- ProgressBarRenderer.cs
- Screen.cs
- SkipStoryboardToFill.cs
- shaper.cs
- SpeechDetectedEventArgs.cs
- DeleteStoreRequest.cs
- CompiledQuery.cs
- StoreAnnotationsMap.cs
- HtmlElementCollection.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- SqlDuplicator.cs
- Grant.cs
- TextBlock.cs
- ComponentEvent.cs
- ParenthesizePropertyNameAttribute.cs
- PublisherIdentityPermission.cs
- ChangeToolStripParentVerb.cs
- SqlProcedureAttribute.cs
- CompilationLock.cs
- AddInActivator.cs
- TypedTableBaseExtensions.cs
- LogRestartAreaEnumerator.cs
- AnnotationResourceCollection.cs
- SystemIcmpV4Statistics.cs
- InkCanvasSelectionAdorner.cs
- StatusBarItemAutomationPeer.cs
- LinkClickEvent.cs
- Configuration.cs
- SyndicationSerializer.cs
- CreationContext.cs
- AvtEvent.cs