Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WebColorConverter.cs
- ParseElementCollection.cs
- ListMarkerLine.cs
- _SslSessionsCache.cs
- ListenerElementsCollection.cs
- OdbcEnvironmentHandle.cs
- ItemCollectionEditor.cs
- NotifyCollectionChangedEventArgs.cs
- AtomMaterializer.cs
- ToolstripProfessionalRenderer.cs
- Track.cs
- XmlDocumentFieldSchema.cs
- MsmqIntegrationChannelListener.cs
- RowCache.cs
- NamedPipeWorkerProcess.cs
- MultiBinding.cs
- WebServiceErrorEvent.cs
- _BasicClient.cs
- CheckedListBox.cs
- CqlErrorHelper.cs
- WebConfigurationManager.cs
- JsonEncodingStreamWrapper.cs
- ThreadExceptionDialog.cs
- NotImplementedException.cs
- ConfigXmlReader.cs
- PointCollection.cs
- MetadataArtifactLoaderComposite.cs
- StorageMappingItemLoader.cs
- XmlDocumentViewSchema.cs
- ResourceManager.cs
- ApplicationServicesHostFactory.cs
- CommandExpr.cs
- Menu.cs
- _SslStream.cs
- RuleSetReference.cs
- EqualityComparer.cs
- MediaEntryAttribute.cs
- TimeoutConverter.cs
- QilGenerator.cs
- loginstatus.cs
- FactoryMaker.cs
- DataGridViewTextBoxCell.cs
- VectorConverter.cs
- FormsAuthentication.cs
- ConfigurationElementCollection.cs
- TypeHelpers.cs
- ChannelDispatcher.cs
- WebPartTransformerAttribute.cs
- initElementDictionary.cs
- StreamAsIStream.cs
- NamespaceList.cs
- StrongTypingException.cs
- DisposableCollectionWrapper.cs
- TextEffectCollection.cs
- JapaneseCalendar.cs
- CompiledRegexRunner.cs
- BlockCollection.cs
- DescendantBaseQuery.cs
- RequestQueryParser.cs
- GatewayIPAddressInformationCollection.cs
- SystemResources.cs
- BatchParser.cs
- HttpModuleActionCollection.cs
- _Connection.cs
- SQLInt16Storage.cs
- Utility.cs
- CryptoConfig.cs
- CodeExporter.cs
- ResetableIterator.cs
- NominalTypeEliminator.cs
- EmissiveMaterial.cs
- NetNamedPipeBinding.cs
- Base64Decoder.cs
- CompositeFontParser.cs
- SchemaElement.cs
- StylusDevice.cs
- ErrorFormatter.cs
- SiteMapSection.cs
- SelectionGlyph.cs
- SchemaImporter.cs
- GridViewDeleteEventArgs.cs
- DesignOnlyAttribute.cs
- TextSpan.cs
- MultiPropertyDescriptorGridEntry.cs
- PrinterUnitConvert.cs
- controlskin.cs
- ListControlDesigner.cs
- GroupItemAutomationPeer.cs
- DrawingContext.cs
- BigInt.cs
- NotificationContext.cs
- VectorAnimation.cs
- ImageSourceValueSerializer.cs
- OleDbConnectionInternal.cs
- TripleDES.cs
- MatrixConverter.cs
- CrossContextChannel.cs
- SolidColorBrush.cs
- BitmapEffectDrawingContextWalker.cs
- CompensableActivity.cs