Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- SearchForVirtualItemEventArgs.cs
- DataGridViewBand.cs
- SqlSupersetValidator.cs
- ConfigsHelper.cs
- VarRemapper.cs
- XslTransformFileEditor.cs
- ProxyWebPartManager.cs
- CommandID.cs
- WebServiceTypeData.cs
- KeySplineConverter.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- MissingManifestResourceException.cs
- SizeFConverter.cs
- HttpSysSettings.cs
- LinkedList.cs
- ProxyWebPartConnectionCollection.cs
- SqlStatistics.cs
- TypeNameConverter.cs
- InternalPermissions.cs
- EntityCodeGenerator.cs
- DSACryptoServiceProvider.cs
- AutomationPattern.cs
- RelationshipEndMember.cs
- SafeViewOfFileHandle.cs
- PageThemeParser.cs
- NoneExcludedImageIndexConverter.cs
- ChangeInterceptorAttribute.cs
- OdbcStatementHandle.cs
- BitFlagsGenerator.cs
- WCFServiceClientProxyGenerator.cs
- XmlNodeReader.cs
- SQLChars.cs
- TextEndOfSegment.cs
- XmlWellformedWriter.cs
- XPathNodeInfoAtom.cs
- ListMarkerSourceInfo.cs
- _SpnDictionary.cs
- KeyValueConfigurationCollection.cs
- EdmSchemaAttribute.cs
- BuildProvider.cs
- EpmTargetTree.cs
- ObjectStateManager.cs
- RecipientInfo.cs
- ProcessModelInfo.cs
- TextProperties.cs
- RemoveStoryboard.cs
- dataobject.cs
- SemaphoreSlim.cs
- RenamedEventArgs.cs
- XmlSchemaDatatype.cs
- ArrangedElement.cs
- Application.cs
- WindowsAuthenticationModule.cs
- CTreeGenerator.cs
- ImageSourceValueSerializer.cs
- PerformanceCounterPermissionEntry.cs
- VirtualPathUtility.cs
- CommandBindingCollection.cs
- DataControlButton.cs
- CompositionAdorner.cs
- XmlDataImplementation.cs
- UserPersonalizationStateInfo.cs
- FillBehavior.cs
- JsonClassDataContract.cs
- DoubleUtil.cs
- StorageEntityTypeMapping.cs
- Facet.cs
- COM2PropertyDescriptor.cs
- ContextQuery.cs
- ClusterSafeNativeMethods.cs
- SystemColorTracker.cs
- MethodRental.cs
- DecimalConverter.cs
- SqlParameterizer.cs
- TreeNodeCollection.cs
- Console.cs
- HttpModulesSection.cs
- CngUIPolicy.cs
- BulletedList.cs
- NativeCppClassAttribute.cs
- ConnectionStringSettings.cs
- CodeConditionStatement.cs
- ProcessModelSection.cs
- HwndHost.cs
- ColumnHeaderConverter.cs
- DiagnosticsConfigurationHandler.cs
- CompilerScope.cs
- WpfWebRequestHelper.cs
- Group.cs
- Peer.cs
- CounterNameConverter.cs
- MaskedTextProvider.cs
- SQLByte.cs
- EntityType.cs
- BackStopAuthenticationModule.cs
- StylusDownEventArgs.cs
- Pair.cs
- EnvelopedPkcs7.cs
- Int64AnimationUsingKeyFrames.cs
- CompilerTypeWithParams.cs