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
- WindowsStartMenu.cs
- DataGridViewSelectedCellCollection.cs
- XPathBinder.cs
- PathGradientBrush.cs
- _OSSOCK.cs
- Vector3DCollectionConverter.cs
- ServiceControllerDesigner.cs
- PeerTransportListenAddressValidatorAttribute.cs
- XamlWriterExtensions.cs
- SharedUtils.cs
- StickyNoteHelper.cs
- CapabilitiesSection.cs
- NodeInfo.cs
- TreeNodeConverter.cs
- ParameterReplacerVisitor.cs
- PerfCounters.cs
- ExpressionEvaluator.cs
- ResourceContainerWrapper.cs
- MimeObjectFactory.cs
- RemotingSurrogateSelector.cs
- UnionCodeGroup.cs
- DelayLoadType.cs
- CacheRequest.cs
- RoutedEventHandlerInfo.cs
- CodeChecksumPragma.cs
- UnionCqlBlock.cs
- MembershipValidatePasswordEventArgs.cs
- autovalidator.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ArrayEditor.cs
- GeneralTransform3DTo2DTo3D.cs
- TrustManager.cs
- SqlUDTStorage.cs
- InstanceCreationEditor.cs
- DocumentPageHost.cs
- CellParagraph.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ToolStripActionList.cs
- OAVariantLib.cs
- ViewgenContext.cs
- QilSortKey.cs
- xsdvalidator.cs
- RepeatBehaviorConverter.cs
- Size.cs
- SafeEventHandle.cs
- GuidelineCollection.cs
- RawMouseInputReport.cs
- InvokeGenerator.cs
- TextRunProperties.cs
- ActivityBindForm.cs
- XamlInt32CollectionSerializer.cs
- XMLDiffLoader.cs
- Matrix3D.cs
- XpsSerializationException.cs
- storepermissionattribute.cs
- RenderCapability.cs
- RoutingExtension.cs
- SizeValueSerializer.cs
- CommandHelper.cs
- MessagePartDescription.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CompositeActivityMarkupSerializer.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- DataGridViewSelectedCellCollection.cs
- DrawTreeNodeEventArgs.cs
- XomlCompilerParameters.cs
- SByte.cs
- TTSVoice.cs
- ScriptModule.cs
- DataGridViewComboBoxCell.cs
- ButtonField.cs
- UnsafeNativeMethods.cs
- ActivityPreviewDesigner.cs
- SqlXmlStorage.cs
- SafeCryptContextHandle.cs
- FrameworkName.cs
- PersistenceTypeAttribute.cs
- XPathDocument.cs
- AccessibleObject.cs
- iisPickupDirectory.cs
- ToolStripRenderEventArgs.cs
- SmtpCommands.cs
- CompositeControl.cs
- ClientUrlResolverWrapper.cs
- DataViewManagerListItemTypeDescriptor.cs
- RequiredFieldValidator.cs
- EventHandlerList.cs
- _SingleItemRequestCache.cs
- SqlEnums.cs
- PenLineJoinValidation.cs
- SqlDataSourceSelectingEventArgs.cs
- TextEditorParagraphs.cs
- cookiecontainer.cs
- SafeCertificateContext.cs
- TransformGroup.cs
- OdbcEnvironmentHandle.cs
- DBConnection.cs
- ProfileManager.cs
- TrackingServices.cs
- TextModifier.cs