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
- ManifestResourceInfo.cs
- COM2Enum.cs
- EntityConnectionStringBuilder.cs
- EtwTrackingBehavior.cs
- cookie.cs
- TrackingMemoryStream.cs
- Rotation3D.cs
- SizeAnimationUsingKeyFrames.cs
- WinCategoryAttribute.cs
- Atom10FormatterFactory.cs
- ColumnMapTranslator.cs
- DataSourceCacheDurationConverter.cs
- DebugView.cs
- HwndSourceKeyboardInputSite.cs
- securitymgrsite.cs
- BaseParagraph.cs
- PointUtil.cs
- CategoryGridEntry.cs
- PageCodeDomTreeGenerator.cs
- Transform3D.cs
- AppSettingsExpressionBuilder.cs
- ZipIOExtraFieldPaddingElement.cs
- XmlTextReaderImpl.cs
- XXXInfos.cs
- RegexCompilationInfo.cs
- XmlSchemaImport.cs
- UInt64.cs
- Fx.cs
- CompareValidator.cs
- SendKeys.cs
- TimersDescriptionAttribute.cs
- SerializationInfo.cs
- SoapFault.cs
- HelpKeywordAttribute.cs
- BindingBase.cs
- BinaryObjectReader.cs
- BuildManagerHost.cs
- ComplexTypeEmitter.cs
- DataSetUtil.cs
- FtpRequestCacheValidator.cs
- AncestorChangedEventArgs.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- SmtpAuthenticationManager.cs
- WebControlsSection.cs
- ExpandableObjectConverter.cs
- SoapExtensionImporter.cs
- StartUpEventArgs.cs
- DataGridViewTextBoxCell.cs
- MetadataItem_Static.cs
- CodeDelegateCreateExpression.cs
- Site.cs
- PixelFormat.cs
- AccessDataSourceDesigner.cs
- DataServiceRequestOfT.cs
- TextServicesHost.cs
- SourceFileInfo.cs
- BigInt.cs
- SiteMapNodeItemEventArgs.cs
- StringBuilder.cs
- PageStatePersister.cs
- DecoderNLS.cs
- ScriptReference.cs
- MenuItemBinding.cs
- RowCache.cs
- RegexRunner.cs
- OrderedDictionaryStateHelper.cs
- TextElement.cs
- ComponentEditorPage.cs
- FixedSOMTableRow.cs
- UserMapPath.cs
- DataGridHeaderBorder.cs
- JsonByteArrayDataContract.cs
- SerializationUtility.cs
- GifBitmapDecoder.cs
- BindingBase.cs
- Util.cs
- ConnectionManager.cs
- HtmlInputFile.cs
- TreePrinter.cs
- Configuration.cs
- XmlDictionaryReader.cs
- StringFormat.cs
- AnimationClock.cs
- Stacktrace.cs
- WindowsStatic.cs
- Pair.cs
- AdditionalEntityFunctions.cs
- SchemaDeclBase.cs
- HttpServerVarsCollection.cs
- HttpTransportSecurity.cs
- HtmlInputControl.cs
- _NTAuthentication.cs
- RealProxy.cs
- SHA1.cs
- MsmqIntegrationValidationBehavior.cs
- TrustVersion.cs
- RawStylusInput.cs
- Native.cs
- BuildDependencySet.cs
- WebBrowserProgressChangedEventHandler.cs