Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ListSortDescription.cs
- FontFaceLayoutInfo.cs
- OuterGlowBitmapEffect.cs
- ExpressionConverter.cs
- RequestTimeoutManager.cs
- HwndSource.cs
- Int32Animation.cs
- VBIdentifierTrimConverter.cs
- HtmlTernaryTree.cs
- RSACryptoServiceProvider.cs
- IBuiltInEvidence.cs
- SqlClientPermission.cs
- OutputCacheSettingsSection.cs
- EntityProviderServices.cs
- ResponseBodyWriter.cs
- OrderingExpression.cs
- WebEvents.cs
- wgx_sdk_version.cs
- ExpressionContext.cs
- HttpListenerRequest.cs
- DispatcherExceptionFilterEventArgs.cs
- DefaultWorkflowLoaderService.cs
- DocumentViewerBase.cs
- SafeRightsManagementQueryHandle.cs
- ListViewEditEventArgs.cs
- GroupAggregateExpr.cs
- CharAnimationBase.cs
- RC2CryptoServiceProvider.cs
- ContractListAdapter.cs
- CompensationHandlingFilter.cs
- SoapConverter.cs
- Version.cs
- ClonableStack.cs
- Page.cs
- ColumnHeader.cs
- CodeCompileUnit.cs
- XmlSchema.cs
- NetworkInformationException.cs
- NameTable.cs
- ImmComposition.cs
- TextRangeBase.cs
- WsatProxy.cs
- BindingMemberInfo.cs
- InstanceKeyCollisionException.cs
- TextTreeRootTextBlock.cs
- MeshGeometry3D.cs
- RuleAction.cs
- GetBrowserTokenRequest.cs
- panel.cs
- Rotation3DAnimation.cs
- DbSourceCommand.cs
- MsmqIntegrationChannelFactory.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CfgParser.cs
- JsonFormatReaderGenerator.cs
- XmlSerializerOperationGenerator.cs
- TextTreeUndoUnit.cs
- Stream.cs
- SimpleBitVector32.cs
- FontWeight.cs
- HMACSHA384.cs
- LineSegment.cs
- HttpChannelBindingToken.cs
- PageBorderless.cs
- DiscoveryDocumentLinksPattern.cs
- HttpBufferlessInputStream.cs
- DesignerAttribute.cs
- OleDbConnectionInternal.cs
- DesignerOptions.cs
- OleDbErrorCollection.cs
- GradientSpreadMethodValidation.cs
- Win32Interop.cs
- DesignerLoader.cs
- PartialClassGenerationTask.cs
- TransformerConfigurationWizardBase.cs
- HtmlImage.cs
- TableSectionStyle.cs
- SqlUserDefinedAggregateAttribute.cs
- SmtpNegotiateAuthenticationModule.cs
- CachedPathData.cs
- FileRecordSequenceCompletedAsyncResult.cs
- IListConverters.cs
- WebPartAuthorizationEventArgs.cs
- MatrixConverter.cs
- ValidationPropertyAttribute.cs
- GridViewColumn.cs
- ImageKeyConverter.cs
- StringUtil.cs
- TypeHelper.cs
- BindingEntityInfo.cs
- ElementProxy.cs
- SafeTokenHandle.cs
- WebPartConnectionCollection.cs
- Attributes.cs
- CodeSnippetTypeMember.cs
- BufferBuilder.cs
- TypeSystem.cs
- XmlElement.cs
- HttpContextServiceHost.cs
- SamlAuthenticationClaimResource.cs