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
- StaticResourceExtension.cs
- LowerCaseStringConverter.cs
- ConfigurationFileMap.cs
- Size3D.cs
- MethodResolver.cs
- ConfigurationValue.cs
- DataGridViewHeaderCell.cs
- RelationshipNavigation.cs
- sqlinternaltransaction.cs
- Scripts.cs
- SmtpNegotiateAuthenticationModule.cs
- CapiSafeHandles.cs
- Utils.cs
- PasswordDeriveBytes.cs
- StaticSiteMapProvider.cs
- BaseValidator.cs
- _Connection.cs
- FrameworkContextData.cs
- SafeNativeMethods.cs
- StorageMappingFragment.cs
- SmiContext.cs
- SignedXml.cs
- PageCatalogPart.cs
- SeekableMessageNavigator.cs
- RawStylusSystemGestureInputReport.cs
- StateBag.cs
- DotExpr.cs
- PropertyCollection.cs
- SpinWait.cs
- PenThread.cs
- WebBrowserUriTypeConverter.cs
- TypeGeneratedEventArgs.cs
- OpCopier.cs
- CacheHelper.cs
- GradientBrush.cs
- TaskFormBase.cs
- XPathCompileException.cs
- ChooseAction.cs
- ModuleBuilder.cs
- DefaultTraceListener.cs
- Style.cs
- UserControlDesigner.cs
- GeneralTransform3DGroup.cs
- EnumerableRowCollectionExtensions.cs
- WebAdminConfigurationHelper.cs
- SqlOuterApplyReducer.cs
- HistoryEventArgs.cs
- NameValueConfigurationElement.cs
- EpmSourcePathSegment.cs
- XdrBuilder.cs
- PageCache.cs
- CompilerGlobalScopeAttribute.cs
- Literal.cs
- BamlRecordWriter.cs
- MatrixIndependentAnimationStorage.cs
- PDBReader.cs
- BufferedWebEventProvider.cs
- CompilerHelpers.cs
- TraceUtils.cs
- ParseNumbers.cs
- HttpException.cs
- TreeNodeBindingCollection.cs
- RelatedEnd.cs
- COM2ExtendedUITypeEditor.cs
- ErrorFormatterPage.cs
- DetailsViewDeletedEventArgs.cs
- XmlIlVisitor.cs
- SqlDeflator.cs
- Resources.Designer.cs
- Proxy.cs
- WindowsStreamSecurityUpgradeProvider.cs
- ControlAdapter.cs
- D3DImage.cs
- ObjectDataSourceDisposingEventArgs.cs
- coordinator.cs
- TextSelectionHelper.cs
- ImageField.cs
- VisualBrush.cs
- KerberosSecurityTokenProvider.cs
- CalendarKeyboardHelper.cs
- AlignmentYValidation.cs
- ScrollEventArgs.cs
- StrokeFIndices.cs
- StrongNameKeyPair.cs
- AutomationPropertyInfo.cs
- TypedRowGenerator.cs
- PasswordTextContainer.cs
- RectAnimation.cs
- SqlLiftIndependentRowExpressions.cs
- Menu.cs
- _DomainName.cs
- OdbcStatementHandle.cs
- FieldDescriptor.cs
- RowToParametersTransformer.cs
- XmlCDATASection.cs
- ListBoxAutomationPeer.cs
- HostingEnvironmentException.cs
- TextPatternIdentifiers.cs
- DataGridViewColumnHeaderCell.cs
- WebPartsPersonalization.cs