Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / DocumentScope.cs / 1305376 / 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 (Ref.Equal(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 (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 (Ref.Equal(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 (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
- ColumnCollectionEditor.cs
- RuleSetReference.cs
- MaterialGroup.cs
- XmlILConstructAnalyzer.cs
- HtmlMobileTextWriter.cs
- EntityDataSourceChangingEventArgs.cs
- WebServiceMethodData.cs
- OdbcEnvironment.cs
- SecurityAccessDeniedException.cs
- ClientApiGenerator.cs
- Image.cs
- ZoneIdentityPermission.cs
- JsonFormatReaderGenerator.cs
- DataSourceCollectionBase.cs
- TokenBasedSet.cs
- AnnotationAdorner.cs
- RecognizeCompletedEventArgs.cs
- Span.cs
- AuthorizationContext.cs
- MenuItemCollection.cs
- XmlSchemaAppInfo.cs
- SQLInt64.cs
- BinarySerializer.cs
- Property.cs
- mansign.cs
- FilterableAttribute.cs
- ReachPageContentSerializerAsync.cs
- RegexCompiler.cs
- Matrix.cs
- DataGridViewRowPrePaintEventArgs.cs
- SubstitutionList.cs
- AttachInfo.cs
- DetailsViewCommandEventArgs.cs
- _ProxyChain.cs
- Int32KeyFrameCollection.cs
- CurrentChangedEventManager.cs
- EditorPartChrome.cs
- EditorBrowsableAttribute.cs
- DesignBindingValueUIHandler.cs
- UInt16Converter.cs
- MessageQueuePermissionAttribute.cs
- VolatileEnlistmentState.cs
- ToolStripDropDownMenu.cs
- SqlMetaData.cs
- UTF7Encoding.cs
- WindowInteractionStateTracker.cs
- TemplateBuilder.cs
- EmptyControlCollection.cs
- Stack.cs
- AutoSizeToolBoxItem.cs
- TableLayoutSettings.cs
- NativeObjectSecurity.cs
- StrokeNodeEnumerator.cs
- ConfigurationStrings.cs
- RandomNumberGenerator.cs
- EventMappingSettings.cs
- HeaderCollection.cs
- Coordinator.cs
- XmlILModule.cs
- BaseTemplatedMobileComponentEditor.cs
- EncodingTable.cs
- MimeParameters.cs
- HebrewNumber.cs
- ObjectDisposedException.cs
- ListItemCollection.cs
- InputProcessorProfilesLoader.cs
- CodeTypeOfExpression.cs
- WebRequestModuleElement.cs
- SEHException.cs
- Parser.cs
- Italic.cs
- DynamicResourceExtensionConverter.cs
- HostingPreferredMapPath.cs
- OdbcInfoMessageEvent.cs
- RepeaterItem.cs
- SettingsContext.cs
- ScriptHandlerFactory.cs
- Encoding.cs
- QuotedPrintableStream.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- MaskedTextProvider.cs
- SrgsSemanticInterpretationTag.cs
- EditableLabelControl.cs
- RegularExpressionValidator.cs
- Array.cs
- PropertyBuilder.cs
- RetrieveVirtualItemEventArgs.cs
- BidirectionalDictionary.cs
- ServerValidateEventArgs.cs
- WorkflowInstance.cs
- XPathNodeList.cs
- QueryStringParameter.cs
- ExternalCalls.cs
- TokenizerHelper.cs
- AbstractSvcMapFileLoader.cs
- WebPartEditVerb.cs
- IdleTimeoutMonitor.cs
- CodeCompiler.cs
- SqlProcedureAttribute.cs
- FtpWebResponse.cs