Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TraceSource.cs
- SourceFileBuildProvider.cs
- Win32Native.cs
- InheritanceContextChangedEventManager.cs
- ArithmeticLiteral.cs
- CursorConverter.cs
- MemberExpressionHelper.cs
- listitem.cs
- ValidationErrorCollection.cs
- OperationContext.cs
- ClientConfigurationSystem.cs
- WebPageTraceListener.cs
- NegotiateStream.cs
- GridViewRowPresenter.cs
- RolePrincipal.cs
- AssemblyResolver.cs
- IxmlLineInfo.cs
- ContentType.cs
- TypeTypeConverter.cs
- ReadOnlyMetadataCollection.cs
- Serializer.cs
- SiteMapPath.cs
- PropertiesTab.cs
- MobilePage.cs
- NavigationWindow.cs
- BaseCodeDomTreeGenerator.cs
- IncrementalCompileAnalyzer.cs
- ActivityInfo.cs
- EdmRelationshipRoleAttribute.cs
- CheckBox.cs
- Dispatcher.cs
- ResourceProperty.cs
- HtmlHistory.cs
- DefaultTextStore.cs
- SerializationFieldInfo.cs
- ComboBoxAutomationPeer.cs
- securestring.cs
- CodeExporter.cs
- Content.cs
- LineVisual.cs
- DataGridViewLinkColumn.cs
- ReferenceConverter.cs
- OutputCache.cs
- AstTree.cs
- RelationshipNavigation.cs
- UrlAuthFailedErrorFormatter.cs
- ByteConverter.cs
- ScriptingRoleServiceSection.cs
- WebServiceFault.cs
- IntAverageAggregationOperator.cs
- IndexerNameAttribute.cs
- DataGridViewLinkColumn.cs
- StringExpressionSet.cs
- XPathScanner.cs
- SamlConstants.cs
- ObjectParameterCollection.cs
- ParentQuery.cs
- PeerNameRecordCollection.cs
- EventLogEntryCollection.cs
- XmlSerializerSection.cs
- UnionCqlBlock.cs
- PersonalizationDictionary.cs
- SocketInformation.cs
- TemplateKeyConverter.cs
- ProfilePropertySettings.cs
- ParallelLoopState.cs
- CssStyleCollection.cs
- TableLayoutColumnStyleCollection.cs
- XPathSingletonIterator.cs
- SequentialOutput.cs
- WindowsTab.cs
- AliasedExpr.cs
- XPathLexer.cs
- MatrixConverter.cs
- CatalogPart.cs
- PropertyItemInternal.cs
- StaticExtension.cs
- VirtualDirectoryMapping.cs
- TextTreeText.cs
- CancellationTokenSource.cs
- ProcessHostFactoryHelper.cs
- EdmValidator.cs
- XmlEnumAttribute.cs
- DataTemplateKey.cs
- WebPartMenuStyle.cs
- RsaSecurityToken.cs
- BindableAttribute.cs
- SoapConverter.cs
- ItemsChangedEventArgs.cs
- EmissiveMaterial.cs
- DateTimeOffset.cs
- SoapRpcMethodAttribute.cs
- UpdatePanelTrigger.cs
- ExchangeUtilities.cs
- AffineTransform3D.cs
- MdiWindowListStrip.cs
- SocketInformation.cs
- InstalledFontCollection.cs
- DataControlField.cs
- ListenerConfig.cs