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
- GlobalId.cs
- FlowDocumentPageViewerAutomationPeer.cs
- IMembershipProvider.cs
- DiscoveryMessageSequence.cs
- CompilerCollection.cs
- Rotation3DKeyFrameCollection.cs
- sqlser.cs
- _Connection.cs
- ListViewAutomationPeer.cs
- HtmlEncodedRawTextWriter.cs
- SessionStateContainer.cs
- NegotiateStream.cs
- StatusBarDrawItemEvent.cs
- AndCondition.cs
- XmlSchemaDocumentation.cs
- PropertyGridEditorPart.cs
- MaskedTextProvider.cs
- BitmapEffect.cs
- ReferenceEqualityComparer.cs
- AnnouncementEventArgs.cs
- HttpWrapper.cs
- TypographyProperties.cs
- XmlSchemaAnnotation.cs
- FrameworkElementFactoryMarkupObject.cs
- QueryExpr.cs
- ValidationRuleCollection.cs
- UxThemeWrapper.cs
- ComponentEvent.cs
- SqlGenericUtil.cs
- ToolStripContainer.cs
- TypeForwardedFromAttribute.cs
- HttpContextServiceHost.cs
- InstallerTypeAttribute.cs
- PageParser.cs
- FlowSwitchLink.cs
- InkCanvasSelectionAdorner.cs
- EntityStoreSchemaFilterEntry.cs
- ModelToObjectValueConverter.cs
- Symbol.cs
- ToolboxDataAttribute.cs
- HtmlUtf8RawTextWriter.cs
- OracleFactory.cs
- DBConnection.cs
- TabOrder.cs
- SynchronizedInputAdaptor.cs
- SqlFunctions.cs
- XmlChildEnumerator.cs
- Underline.cs
- OleDbConnection.cs
- Environment.cs
- PageStatePersister.cs
- HttpPostedFile.cs
- WebConfigurationManager.cs
- DataControlImageButton.cs
- OperandQuery.cs
- MetadataCache.cs
- ConcurrentDictionary.cs
- SelectionEditor.cs
- RepeaterItemEventArgs.cs
- WindowsFont.cs
- MinMaxParagraphWidth.cs
- HMACSHA1.cs
- OleDbEnumerator.cs
- BitmapInitialize.cs
- BaseParaClient.cs
- XmlNodeWriter.cs
- DataSourceProvider.cs
- BuildResultCache.cs
- TemplateControlCodeDomTreeGenerator.cs
- COM2ICategorizePropertiesHandler.cs
- AssemblyResourceLoader.cs
- BaseTemplateBuildProvider.cs
- ZoneMembershipCondition.cs
- InteropExecutor.cs
- PolyQuadraticBezierSegment.cs
- BasicExpandProvider.cs
- PropertyAccessVisitor.cs
- RevocationPoint.cs
- SafeEventLogWriteHandle.cs
- SqlInternalConnectionSmi.cs
- PrePrepareMethodAttribute.cs
- DataListCommandEventArgs.cs
- CqlQuery.cs
- FontFamilyIdentifier.cs
- columnmapfactory.cs
- BamlLocalizableResource.cs
- StrokeNodeOperations2.cs
- SqlConnection.cs
- Stackframe.cs
- DesigntimeLicenseContext.cs
- ThreadStaticAttribute.cs
- AssignDesigner.xaml.cs
- SignedInfo.cs
- SharedStatics.cs
- StorageScalarPropertyMapping.cs
- JournalNavigationScope.cs
- SspiHelper.cs
- GridToolTip.cs
- ThreadAttributes.cs
- ValueTypeFixupInfo.cs