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
- BitArray.cs
- SecurityVersion.cs
- EdmScalarPropertyAttribute.cs
- SamlAdvice.cs
- IncrementalHitTester.cs
- DateBoldEvent.cs
- ZipQueryOperator.cs
- AuthorizationRuleCollection.cs
- ObfuscateAssemblyAttribute.cs
- SapiRecognizer.cs
- GreaterThan.cs
- FontConverter.cs
- COM2IProvidePropertyBuilderHandler.cs
- XmlSchemaGroup.cs
- ProxyWebPartConnectionCollection.cs
- MenuEventArgs.cs
- ClientSettings.cs
- DeflateStream.cs
- ComplexBindingPropertiesAttribute.cs
- SqlInfoMessageEvent.cs
- WorkflowOperationFault.cs
- GB18030Encoding.cs
- ModifyActivitiesPropertyDescriptor.cs
- CustomErrorsSection.cs
- _UncName.cs
- TextUtf8RawTextWriter.cs
- ObfuscateAssemblyAttribute.cs
- DSACryptoServiceProvider.cs
- WmfPlaceableFileHeader.cs
- InfoCardSymmetricAlgorithm.cs
- ColumnMapCopier.cs
- HttpConfigurationContext.cs
- BuildResult.cs
- WindowsScrollBar.cs
- InheritanceRules.cs
- PathTooLongException.cs
- ResourceType.cs
- ProfilePropertySettingsCollection.cs
- FloaterBaseParaClient.cs
- SmiContextFactory.cs
- ListControlConvertEventArgs.cs
- DeviceContext.cs
- ModifierKeysValueSerializer.cs
- ApplicationInfo.cs
- OracleException.cs
- IISMapPath.cs
- FormViewDeleteEventArgs.cs
- ScrollChangedEventArgs.cs
- Configuration.cs
- NameValueCollection.cs
- QuaternionAnimation.cs
- SelectorAutomationPeer.cs
- ConstructorNeedsTagAttribute.cs
- SqlMethodTransformer.cs
- XmlWrappingWriter.cs
- HttpListenerRequestUriBuilder.cs
- PerformanceCounterCategory.cs
- LinqDataSourceDeleteEventArgs.cs
- ParsedAttributeCollection.cs
- WinEventHandler.cs
- DbConnectionPoolGroupProviderInfo.cs
- SchemaMerger.cs
- OracleConnectionString.cs
- ByteStack.cs
- InstanceDataCollection.cs
- AsymmetricSignatureFormatter.cs
- JsonReader.cs
- EpmTargetPathSegment.cs
- PanelStyle.cs
- MultiDataTrigger.cs
- TransactionContextValidator.cs
- util.cs
- RequiredFieldValidator.cs
- XmlBindingWorker.cs
- MouseEventArgs.cs
- DocumentViewerAutomationPeer.cs
- ItemDragEvent.cs
- ColorIndependentAnimationStorage.cs
- ErrorFormatterPage.cs
- OpenTypeLayoutCache.cs
- EntityDataSourceSelectedEventArgs.cs
- TextServicesCompartmentEventSink.cs
- TableCellCollection.cs
- CapabilitiesRule.cs
- QilGeneratorEnv.cs
- ScriptManager.cs
- PanelStyle.cs
- WebResourceUtil.cs
- SecurityElement.cs
- CursorInteropHelper.cs
- DependencyObject.cs
- PageMediaType.cs
- SQLInt32Storage.cs
- Win32Native.cs
- RoleGroup.cs
- BufferBuilder.cs
- UserPreferenceChangingEventArgs.cs
- RoutedEventHandlerInfo.cs
- DiscoveryOperationContext.cs
- RubberbandSelector.cs