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
- RichTextBoxConstants.cs
- MSAAEventDispatcher.cs
- DataSourceView.cs
- PropertyReferenceSerializer.cs
- ManipulationStartingEventArgs.cs
- MembershipUser.cs
- PenThread.cs
- UserNamePasswordValidator.cs
- RegistryKey.cs
- ClipboardData.cs
- SqlNotificationRequest.cs
- MetafileHeader.cs
- RowVisual.cs
- ThreadStaticAttribute.cs
- StrokeCollectionDefaultValueFactory.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- Page.cs
- BuildProvider.cs
- WebColorConverter.cs
- SelectingProviderEventArgs.cs
- CollectionChangedEventManager.cs
- QilTypeChecker.cs
- ResourceExpressionEditorSheet.cs
- XmlDocumentSurrogate.cs
- MsmqInputMessagePool.cs
- DragEventArgs.cs
- LinkLabelLinkClickedEvent.cs
- DataControlImageButton.cs
- XPathNodeList.cs
- ObjectTokenCategory.cs
- WebPartChrome.cs
- ScrollChrome.cs
- WebPartVerbCollection.cs
- cryptoapiTransform.cs
- PageBuildProvider.cs
- WebPartTransformerCollection.cs
- PreviewPrintController.cs
- Deflater.cs
- SerializationBinder.cs
- TreeViewImageIndexConverter.cs
- HtmlWindowCollection.cs
- PointValueSerializer.cs
- TextEditor.cs
- SchemaImporter.cs
- SignatureDescription.cs
- __TransparentProxy.cs
- KoreanCalendar.cs
- RootBuilder.cs
- Base64Stream.cs
- CodeTypeDelegate.cs
- RenderData.cs
- WindowsListViewScroll.cs
- XPathDocument.cs
- ActivityCollectionMarkupSerializer.cs
- CultureSpecificStringDictionary.cs
- HttpGetClientProtocol.cs
- RadioButtonStandardAdapter.cs
- BindingEntityInfo.cs
- SystemBrushes.cs
- PeerCollaboration.cs
- OverrideMode.cs
- BinaryParser.cs
- TypeUsageBuilder.cs
- ComEventsSink.cs
- ByValueEqualityComparer.cs
- AssociationSetEnd.cs
- QueryPageSettingsEventArgs.cs
- MimePart.cs
- CodeValidator.cs
- TrustManagerPromptUI.cs
- TagMapCollection.cs
- NetSectionGroup.cs
- CommandConverter.cs
- ToolStripItemEventArgs.cs
- CommandManager.cs
- unsafeIndexingFilterStream.cs
- MdbDataFileEditor.cs
- ToolStripDropDownMenu.cs
- XmlSchemaSimpleTypeUnion.cs
- FormParameter.cs
- GroupBoxRenderer.cs
- ListView.cs
- TableParagraph.cs
- SqlCacheDependencySection.cs
- FileVersionInfo.cs
- TreeNode.cs
- Attributes.cs
- BufferedGraphics.cs
- LinqDataSourceContextEventArgs.cs
- BookmarkWorkItem.cs
- DrawingCollection.cs
- NodeLabelEditEvent.cs
- InvalidDataException.cs
- UxThemeWrapper.cs
- XmlSerializerOperationBehavior.cs
- ByteStorage.cs
- PopupRoot.cs
- XmlSerializerAssemblyAttribute.cs
- IPEndPointCollection.cs
- CheckBoxBaseAdapter.cs