Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- FormsAuthenticationCredentials.cs
- JulianCalendar.cs
- wgx_sdk_version.cs
- FieldToken.cs
- SqlGenerator.cs
- KeyValueConfigurationCollection.cs
- XPathNodeInfoAtom.cs
- XPathArrayIterator.cs
- XPathScanner.cs
- EndpointDiscoveryMetadata.cs
- RegexReplacement.cs
- KeyedCollection.cs
- RuntimeHelpers.cs
- ItemCheckEvent.cs
- SplineQuaternionKeyFrame.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ConsoleKeyInfo.cs
- EntityClassGenerator.cs
- CodeDOMProvider.cs
- SoapInteropTypes.cs
- WrappingXamlSchemaContext.cs
- ObjectDataSourceEventArgs.cs
- XmlComplianceUtil.cs
- OleAutBinder.cs
- IItemContainerGenerator.cs
- SwitchExpression.cs
- BigInt.cs
- Message.cs
- RTLAwareMessageBox.cs
- BitmapEffectInputData.cs
- WebPartMenuStyle.cs
- AvTraceDetails.cs
- UInt32.cs
- Thumb.cs
- WebAdminConfigurationHelper.cs
- FilterableData.cs
- WebPartDisplayModeEventArgs.cs
- PathData.cs
- ExtendedPropertyInfo.cs
- ThrowOnMultipleAssignment.cs
- DbProviderFactory.cs
- SpStreamWrapper.cs
- KnownTypes.cs
- InvalidCastException.cs
- SoapTransportImporter.cs
- followingsibling.cs
- Section.cs
- SubtreeProcessor.cs
- ProviderConnectionPoint.cs
- OutputCacheProfileCollection.cs
- TreeNodeCollection.cs
- UInt16Storage.cs
- TypeConverterHelper.cs
- Util.cs
- ExpressionVisitor.cs
- ADMembershipUser.cs
- PropertyTabAttribute.cs
- Highlights.cs
- ComPlusContractBehavior.cs
- TransportConfigurationTypeElement.cs
- DocumentOrderQuery.cs
- FontFamilyConverter.cs
- CSharpCodeProvider.cs
- Storyboard.cs
- ProcessMessagesAsyncResult.cs
- DoubleUtil.cs
- IMembershipProvider.cs
- CertificateElement.cs
- SecurityException.cs
- QilTargetType.cs
- BitmapEffectGeneralTransform.cs
- SimpleWorkerRequest.cs
- SequentialWorkflowRootDesigner.cs
- ThreadStateException.cs
- ListBase.cs
- HuffCodec.cs
- DocumentReferenceCollection.cs
- ProxySimple.cs
- NonClientArea.cs
- httpstaticobjectscollection.cs
- ZipIORawDataFileBlock.cs
- SecurityRequiresReviewAttribute.cs
- WebControl.cs
- SmtpFailedRecipientsException.cs
- ColumnPropertiesGroup.cs
- MobileUserControl.cs
- WebPartCollection.cs
- GenericTransactionFlowAttribute.cs
- NavigationPropertyEmitter.cs
- SoapEnvelopeProcessingElement.cs
- TimeStampChecker.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- PartialList.cs
- UdpChannelFactory.cs
- LabelLiteral.cs
- Vector3D.cs
- Point3D.cs
- BlockingCollection.cs
- fixedPageContentExtractor.cs
- DataServiceQueryContinuation.cs