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
- ChildDocumentBlock.cs
- dataobject.cs
- AutomationIdentifierGuids.cs
- UrlMappingsSection.cs
- ConfigurationManagerHelper.cs
- HScrollBar.cs
- SaveFileDialog.cs
- Configuration.cs
- UrlMappingCollection.cs
- CharacterShapingProperties.cs
- TextEditorSelection.cs
- TextModifier.cs
- StructureChangedEventArgs.cs
- Perspective.cs
- PowerModeChangedEventArgs.cs
- QueryRewriter.cs
- DesignerCategoryAttribute.cs
- MenuRendererClassic.cs
- XmlDataImplementation.cs
- PropertyDescriptorComparer.cs
- AttributeInfo.cs
- GradientStopCollection.cs
- SHA384.cs
- ObjectDataSource.cs
- DataExpression.cs
- ElementProxy.cs
- BindValidationContext.cs
- AttachmentService.cs
- ConfigurationLocation.cs
- FilteredXmlReader.cs
- ResourceManager.cs
- ConnectionStringsExpressionBuilder.cs
- DefaultParameterValueAttribute.cs
- MenuItemStyleCollection.cs
- AsymmetricSecurityProtocol.cs
- DataListItemEventArgs.cs
- XmlDataImplementation.cs
- XpsPackagingPolicy.cs
- MULTI_QI.cs
- CharStorage.cs
- NativeMethodsOther.cs
- MatrixTransform3D.cs
- ExpressionConverter.cs
- Queue.cs
- Atom10ItemFormatter.cs
- TextEffect.cs
- HelpEvent.cs
- HuffmanTree.cs
- SecureStringHasher.cs
- SimpleHandlerFactory.cs
- ListBox.cs
- SmiMetaDataProperty.cs
- GenericTypeParameterConverter.cs
- ContextMenuAutomationPeer.cs
- DataBinding.cs
- ServerReliableChannelBinder.cs
- SqlStream.cs
- EndGetFileNameFromUserRequest.cs
- MultiByteCodec.cs
- ThemeDictionaryExtension.cs
- HostExecutionContextManager.cs
- DataSourceConverter.cs
- PackageRelationshipSelector.cs
- ResourceContainer.cs
- connectionpool.cs
- SqlDuplicator.cs
- PersonalizableTypeEntry.cs
- PolyLineSegment.cs
- XmlNode.cs
- QueueProcessor.cs
- SubstitutionList.cs
- BrushValueSerializer.cs
- FullTrustAssemblyCollection.cs
- SetterBase.cs
- SystemIcmpV4Statistics.cs
- XsltFunctions.cs
- NamedPipeTransportSecurity.cs
- XamlFigureLengthSerializer.cs
- EmptyStringExpandableObjectConverter.cs
- XmlNullResolver.cs
- TextContainerChangeEventArgs.cs
- Nodes.cs
- FieldBuilder.cs
- OciEnlistContext.cs
- PolicyUtility.cs
- WebRequestModulesSection.cs
- AuthenticatingEventArgs.cs
- StringReader.cs
- Transaction.cs
- BasicHttpMessageCredentialType.cs
- CharacterHit.cs
- DataTableMappingCollection.cs
- StringResourceManager.cs
- CellTreeSimplifier.cs
- Calendar.cs
- CustomErrorsSectionWrapper.cs
- SHA1.cs
- AsyncPostBackErrorEventArgs.cs
- _Win32.cs
- Application.cs