Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / DocumentScope.cs / 1305376 / 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 (Ref.Equal(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 (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
- BaseComponentEditor.cs
- Polygon.cs
- _Rfc2616CacheValidators.cs
- MetadataArtifactLoaderComposite.cs
- HttpCacheParams.cs
- ColorContextHelper.cs
- AstNode.cs
- TabletDeviceInfo.cs
- StructuredCompositeActivityDesigner.cs
- SizeChangedInfo.cs
- LoginUtil.cs
- ItemMap.cs
- SendingRequestEventArgs.cs
- Pts.cs
- MD5.cs
- UDPClient.cs
- SmtpCommands.cs
- Size3DValueSerializer.cs
- ExecutedRoutedEventArgs.cs
- MaterialGroup.cs
- TagPrefixCollection.cs
- KnownBoxes.cs
- Base64Decoder.cs
- XMLDiffLoader.cs
- HttpHandlersSection.cs
- ProcessHostServerConfig.cs
- ErasingStroke.cs
- SiteMapNode.cs
- CancelAsyncOperationRequest.cs
- OleDbParameter.cs
- ExtenderControl.cs
- EasingKeyFrames.cs
- MailWebEventProvider.cs
- SimpleTypeResolver.cs
- SqlCacheDependency.cs
- CachedPathData.cs
- QuadTree.cs
- StringCollection.cs
- FilterEventArgs.cs
- AuthorizationSection.cs
- COSERVERINFO.cs
- WebConfigurationFileMap.cs
- SecurityCriticalDataForSet.cs
- sqlser.cs
- FragmentNavigationEventArgs.cs
- EntitySqlQueryCacheKey.cs
- ObjectListComponentEditor.cs
- CodeTypeDelegate.cs
- MsdtcClusterUtils.cs
- BasicHttpBindingElement.cs
- ValuePatternIdentifiers.cs
- ConfigurationElementProperty.cs
- ObjectSecurity.cs
- Rotation3DAnimationUsingKeyFrames.cs
- FixedSOMFixedBlock.cs
- VisualTreeHelper.cs
- ComponentSerializationService.cs
- TextEditorMouse.cs
- XmlAttributeCollection.cs
- Pts.cs
- SetUserLanguageRequest.cs
- XmlAtomicValue.cs
- IPCCacheManager.cs
- XmlHierarchicalEnumerable.cs
- safemediahandle.cs
- DataServiceRequestException.cs
- HostProtectionPermission.cs
- _SslState.cs
- ResourcesBuildProvider.cs
- WriteFileContext.cs
- CodeCompiler.cs
- WsdlImporter.cs
- FontSourceCollection.cs
- AmbientLight.cs
- DynamicArgumentDialog.cs
- DesignerDataStoredProcedure.cs
- PanelStyle.cs
- dbenumerator.cs
- IsolatedStorageFile.cs
- FocusTracker.cs
- ImageButton.cs
- SafeCryptoHandles.cs
- FormCollection.cs
- TagPrefixInfo.cs
- WorkflowViewStateService.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XsdSchemaFileEditor.cs
- LinqDataSourceView.cs
- FixedSOMLineCollection.cs
- PointUtil.cs
- HttpPostedFile.cs
- isolationinterop.cs
- _AuthenticationState.cs
- NullRuntimeConfig.cs
- ToolStripTextBox.cs
- BaseCollection.cs
- MarkupExtensionParser.cs
- Util.cs
- While.cs
- FieldDescriptor.cs