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
- OptimalTextSource.cs
- DefaultWorkflowLoaderService.cs
- Stopwatch.cs
- ChannelDispatcherBase.cs
- ApplicationDirectoryMembershipCondition.cs
- BitmapDecoder.cs
- KnownTypesHelper.cs
- SortedList.cs
- Matrix3D.cs
- LinqDataSource.cs
- SplineQuaternionKeyFrame.cs
- SparseMemoryStream.cs
- Header.cs
- CorrelationValidator.cs
- WeakKeyDictionary.cs
- CmsInterop.cs
- EntityDataSourceColumn.cs
- MonthCalendar.cs
- PageStatePersister.cs
- _Semaphore.cs
- GenericXmlSecurityToken.cs
- SingleAnimation.cs
- ProgressiveCrcCalculatingStream.cs
- WebBrowserContainer.cs
- AssertHelper.cs
- KnownBoxes.cs
- SynchronizedDispatch.cs
- ServiceModelTimeSpanValidator.cs
- Label.cs
- IntPtr.cs
- NameValueConfigurationCollection.cs
- DiscoveryReferences.cs
- StrokeCollection2.cs
- DesignerSerializerAttribute.cs
- OledbConnectionStringbuilder.cs
- IndexedGlyphRun.cs
- InternalControlCollection.cs
- SoapCodeExporter.cs
- UserPreferenceChangedEventArgs.cs
- XmlSchemaChoice.cs
- VirtualStackFrame.cs
- HttpProfileBase.cs
- TableLayoutPanelCellPosition.cs
- ValueSerializerAttribute.cs
- DefaultShape.cs
- TypedServiceChannelBuilder.cs
- CultureInfoConverter.cs
- WindowInteractionStateTracker.cs
- NameGenerator.cs
- ScrollContentPresenter.cs
- __FastResourceComparer.cs
- DataGridViewRowEventArgs.cs
- TextProperties.cs
- CodeFieldReferenceExpression.cs
- XmlSchemaComplexType.cs
- JsonDeserializer.cs
- SocketAddress.cs
- ResourceReferenceExpressionConverter.cs
- CompilationLock.cs
- RootBrowserWindow.cs
- SymLanguageType.cs
- GlyphRun.cs
- TableLayoutStyleCollection.cs
- XmlSchemaChoice.cs
- MissingFieldException.cs
- DrawingDrawingContext.cs
- SimpleWebHandlerParser.cs
- ApplicationGesture.cs
- xmlsaver.cs
- ProfilePropertyNameValidator.cs
- ImportContext.cs
- SettingsBase.cs
- RegistrationProxy.cs
- ProxyGenerationError.cs
- EdmToObjectNamespaceMap.cs
- PropertyMetadata.cs
- KeyBinding.cs
- HealthMonitoringSection.cs
- ObjectDataSourceDesigner.cs
- ConfigLoader.cs
- NegotiateStream.cs
- DataContractAttribute.cs
- SortQuery.cs
- DataGridColumnsPage.cs
- PersonalizationProvider.cs
- InputScope.cs
- _CookieModule.cs
- ExpressionParser.cs
- ManifestResourceInfo.cs
- WhitespaceRule.cs
- SqlNodeTypeOperators.cs
- IndentTextWriter.cs
- BlobPersonalizationState.cs
- EpmHelper.cs
- TCPClient.cs
- TimeSpanHelper.cs
- DirectoryInfo.cs
- IisTraceListener.cs
- oledbmetadatacolumnnames.cs
- StreamAsIStream.cs