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
- Win32SafeHandles.cs
- SpStreamWrapper.cs
- SQLInt16Storage.cs
- DataGridItem.cs
- KeyTime.cs
- GridViewDeleteEventArgs.cs
- AdornerHitTestResult.cs
- Or.cs
- DocumentPageHost.cs
- ProxyOperationRuntime.cs
- ByteStack.cs
- EventWaitHandleSecurity.cs
- SqlParameter.cs
- RelOps.cs
- CharUnicodeInfo.cs
- ApplicationBuildProvider.cs
- RefType.cs
- CqlParserHelpers.cs
- SafeHandles.cs
- PropertyPath.cs
- WebPartEditorCancelVerb.cs
- ToolboxDataAttribute.cs
- ProfileSettings.cs
- Rotation3DAnimation.cs
- ColumnResizeAdorner.cs
- ConfigXmlText.cs
- ExpandedProjectionNode.cs
- BitmapEffectRenderDataResource.cs
- CursorConverter.cs
- DrawingDrawingContext.cs
- URIFormatException.cs
- ImageSourceValueSerializer.cs
- RadioButtonPopupAdapter.cs
- ChineseLunisolarCalendar.cs
- CssTextWriter.cs
- WebPartChrome.cs
- AttachmentService.cs
- MultipartContentParser.cs
- WebEvents.cs
- MobileControl.cs
- DocumentGridPage.cs
- PrintDocument.cs
- XmlBoundElement.cs
- SqlTriggerAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- DateTimeOffsetAdapter.cs
- UriTemplate.cs
- DrawingDrawingContext.cs
- WebPermission.cs
- ListParaClient.cs
- metadatamappinghashervisitor.cs
- SoapObjectWriter.cs
- ArraySet.cs
- WebScriptMetadataMessage.cs
- _NetRes.cs
- ObsoleteAttribute.cs
- ProfileGroupSettings.cs
- Rfc2898DeriveBytes.cs
- PropertySegmentSerializer.cs
- MailMessageEventArgs.cs
- MSG.cs
- OdbcParameter.cs
- BuildProvider.cs
- ExtensionQuery.cs
- HtmlWindowCollection.cs
- Bezier.cs
- CodeTypeOfExpression.cs
- MatrixIndependentAnimationStorage.cs
- ListViewSelectEventArgs.cs
- FolderBrowserDialog.cs
- ContentPropertyAttribute.cs
- TextOnlyOutput.cs
- QuestionEventArgs.cs
- SslStream.cs
- HandlerFactoryCache.cs
- DrawingVisual.cs
- AnchoredBlock.cs
- MorphHelper.cs
- BindingUtils.cs
- FunctionImportMapping.cs
- _SSPIWrapper.cs
- WebPartDescriptionCollection.cs
- SiteMapSection.cs
- ProgramNode.cs
- XmlSchemaAttribute.cs
- XmlEntityReference.cs
- PropertyIDSet.cs
- ColumnReorderedEventArgs.cs
- Pair.cs
- SR.cs
- SEHException.cs
- Button.cs
- entityreference_tresulttype.cs
- SBCSCodePageEncoding.cs
- CompilerTypeWithParams.cs
- baseshape.cs
- DesignBindingValueUIHandler.cs
- IteratorFilter.cs
- QuaternionConverter.cs
- ProcessThreadDesigner.cs