Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ConfigUtil.cs
- UserPreferenceChangedEventArgs.cs
- GlobalProxySelection.cs
- Viewport3DVisual.cs
- RTLAwareMessageBox.cs
- StylusOverProperty.cs
- TwoPhaseCommit.cs
- SecuritySessionSecurityTokenProvider.cs
- FontDialog.cs
- EntityUtil.cs
- DeflateEmulationStream.cs
- CollectionContainer.cs
- InputMethodStateTypeInfo.cs
- HandleCollector.cs
- CircleEase.cs
- JumpItem.cs
- SiteIdentityPermission.cs
- DiffuseMaterial.cs
- SQLGuidStorage.cs
- TranslateTransform3D.cs
- AsymmetricCryptoHandle.cs
- SoapReflectionImporter.cs
- DocumentPage.cs
- WinFormsSpinner.cs
- MimeMapping.cs
- PagesSection.cs
- Section.cs
- RowToParametersTransformer.cs
- SR.cs
- FillBehavior.cs
- TagPrefixAttribute.cs
- ResourcePart.cs
- DirtyTextRange.cs
- ContainerUtilities.cs
- MetafileHeaderWmf.cs
- SpeechUI.cs
- BitmapEffectRenderDataResource.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- WindowsContainer.cs
- SoapInteropTypes.cs
- FileLoadException.cs
- AppSettingsReader.cs
- PeerReferralPolicy.cs
- XmlCharCheckingReader.cs
- Parameter.cs
- XmlCodeExporter.cs
- TemplateInstanceAttribute.cs
- MessageHeaderDescriptionCollection.cs
- PartialList.cs
- _AutoWebProxyScriptEngine.cs
- TextCompositionEventArgs.cs
- SqlDataSourceView.cs
- CodeVariableReferenceExpression.cs
- ReadWriteObjectLock.cs
- TimeZone.cs
- ObjectStateManagerMetadata.cs
- ViewPort3D.cs
- AuthorizationSection.cs
- ControlIdConverter.cs
- EventListener.cs
- PerfCounters.cs
- RemoveFromCollection.cs
- XmlCharCheckingReader.cs
- LicenseException.cs
- CryptoConfig.cs
- TreeNodeBindingCollection.cs
- SqlRewriteScalarSubqueries.cs
- PasswordTextNavigator.cs
- XmlSiteMapProvider.cs
- SqlDataSourceSummaryPanel.cs
- Size3D.cs
- ExceptionAggregator.cs
- SchemaInfo.cs
- ForEach.cs
- DropDownList.cs
- SequentialActivityDesigner.cs
- DesignerRegionCollection.cs
- MappingException.cs
- TextElementEnumerator.cs
- ListBase.cs
- BufferAllocator.cs
- StylusButtonEventArgs.cs
- BuildManagerHost.cs
- exports.cs
- WebMessageEncodingBindingElement.cs
- OleDbWrapper.cs
- AnnotationResourceCollection.cs
- InfocardInteractiveChannelInitializer.cs
- UIPermission.cs
- ToolBar.cs
- __Error.cs
- InstanceNameConverter.cs
- AssemblyResourceLoader.cs
- CodeExpressionStatement.cs
- ResolveNameEventArgs.cs
- ColumnMapCopier.cs
- SettingsAttributes.cs
- SqlDataSourceStatusEventArgs.cs
- JsonReaderDelegator.cs
- PagedControl.cs