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
- GenericsInstances.cs
- PlainXmlWriter.cs
- NTAccount.cs
- SHA256CryptoServiceProvider.cs
- DSACryptoServiceProvider.cs
- MessageParameterAttribute.cs
- EntityDataSourceMemberPath.cs
- ActivityInterfaces.cs
- ContentValidator.cs
- AccessDataSourceView.cs
- Dump.cs
- MouseGesture.cs
- NativeMethods.cs
- DataBindingList.cs
- PiiTraceSource.cs
- TableLayoutStyle.cs
- SvcFileManager.cs
- AttachmentService.cs
- CompilationUtil.cs
- OptionalColumn.cs
- Overlapped.cs
- ControlUtil.cs
- OleDbWrapper.cs
- ProvideValueServiceProvider.cs
- BooleanFunctions.cs
- SpotLight.cs
- SupportingTokenBindingElement.cs
- XmlSchemaObjectCollection.cs
- VectorValueSerializer.cs
- Utilities.cs
- ClassHandlersStore.cs
- CompiledRegexRunner.cs
- PathData.cs
- PkcsUtils.cs
- ComponentDesigner.cs
- PageContentCollection.cs
- DbXmlEnabledProviderManifest.cs
- RuleProcessor.cs
- EdmComplexPropertyAttribute.cs
- ShapingWorkspace.cs
- FileDialogCustomPlaces.cs
- _Rfc2616CacheValidators.cs
- TreeNodeBindingCollection.cs
- ConfigurationHandlersInstallComponent.cs
- DataStreamFromComStream.cs
- AsmxEndpointPickerExtension.cs
- TaskExceptionHolder.cs
- BlockCollection.cs
- TopClause.cs
- RelationshipEnd.cs
- WindowsToolbarItemAsMenuItem.cs
- TypedMessageConverter.cs
- HtmlToClrEventProxy.cs
- XPathParser.cs
- DbConnectionInternal.cs
- BoolExpr.cs
- SqlTriggerAttribute.cs
- _NetRes.cs
- TargetConverter.cs
- Selector.cs
- HtmlInputControl.cs
- QueryOperationResponseOfT.cs
- ChildTable.cs
- RSAPKCS1SignatureDeformatter.cs
- SafeFileHandle.cs
- XmlBufferReader.cs
- OdbcConnection.cs
- DataBindingCollection.cs
- HttpFileCollectionWrapper.cs
- ImageDesigner.cs
- RequestCacheEntry.cs
- CodeStatementCollection.cs
- FramingChannels.cs
- WebPartDescriptionCollection.cs
- Symbol.cs
- TrackBarRenderer.cs
- XmlQualifiedNameTest.cs
- IEnumerable.cs
- ConstraintEnumerator.cs
- DirtyTextRange.cs
- RegexTree.cs
- RegistryKey.cs
- BaseCollection.cs
- PathTooLongException.cs
- DelegatingTypeDescriptionProvider.cs
- TraceHandlerErrorFormatter.cs
- HttpListener.cs
- ExpressionVisitor.cs
- GeneralTransformGroup.cs
- ViewKeyConstraint.cs
- URI.cs
- ViewBox.cs
- SvcMapFileLoader.cs
- LifetimeServices.cs
- VectorCollectionConverter.cs
- TextRunCacheImp.cs
- XmlSchemaImport.cs
- PropertyDescriptorCollection.cs
- TypefaceMetricsCache.cs
- TypeExtensionConverter.cs