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
- AutomationPatternInfo.cs
- WizardDesigner.cs
- SecurityElement.cs
- NavigationProperty.cs
- BooleanSwitch.cs
- URI.cs
- TemplateControlParser.cs
- XmlDesignerDataSourceView.cs
- HitTestDrawingContextWalker.cs
- CoreSwitches.cs
- GCHandleCookieTable.cs
- XdrBuilder.cs
- EntityDataSourceStatementEditor.cs
- XPathBinder.cs
- HMACSHA512.cs
- ToolstripProfessionalRenderer.cs
- XmlException.cs
- _CommandStream.cs
- SmtpCommands.cs
- SafeReadContext.cs
- baseshape.cs
- ReturnValue.cs
- DataBindingHandlerAttribute.cs
- EmbeddedObject.cs
- MarginCollapsingState.cs
- ComponentManagerBroker.cs
- TypedColumnHandler.cs
- AstTree.cs
- SqlVersion.cs
- Point.cs
- BaseDataBoundControl.cs
- NativeMethods.cs
- ServiceConfigurationTraceRecord.cs
- LogLogRecordHeader.cs
- FlowDocumentView.cs
- IODescriptionAttribute.cs
- LifetimeServices.cs
- TextCompositionManager.cs
- SafeProcessHandle.cs
- Int64AnimationBase.cs
- MarkupCompiler.cs
- HierarchicalDataBoundControlAdapter.cs
- Compiler.cs
- EntityDataSourceState.cs
- OdbcConnectionStringbuilder.cs
- CaseInsensitiveOrdinalStringComparer.cs
- StaticExtensionConverter.cs
- _Events.cs
- RequestStatusBarUpdateEventArgs.cs
- BamlLocalizabilityResolver.cs
- Binding.cs
- TableHeaderCell.cs
- DrawingImage.cs
- TextRangeProviderWrapper.cs
- FlowDocumentPaginator.cs
- WebPartVerb.cs
- InternalConfigSettingsFactory.cs
- SendParametersContent.cs
- LocationFactory.cs
- HtmlValidatorAdapter.cs
- CodeVariableReferenceExpression.cs
- JavascriptXmlWriterWrapper.cs
- PathGeometry.cs
- ReaderContextStackData.cs
- PlanCompilerUtil.cs
- basenumberconverter.cs
- ConstraintEnumerator.cs
- HMACRIPEMD160.cs
- HtmlInputText.cs
- ConfigXmlSignificantWhitespace.cs
- ExpressionHelper.cs
- CapabilitiesPattern.cs
- LogEntryHeaderv1Deserializer.cs
- CommonDialog.cs
- DispatchChannelSink.cs
- GridViewDesigner.cs
- TypeInitializationException.cs
- PreviewPrintController.cs
- ComplexTypeEmitter.cs
- FormsAuthenticationUser.cs
- DataContractSerializer.cs
- Vars.cs
- WorkflowDesigner.cs
- UnmanagedMemoryStreamWrapper.cs
- ToolboxControl.cs
- SqlDataSourceFilteringEventArgs.cs
- StorageAssociationTypeMapping.cs
- XmlSerializerFactory.cs
- PropertyRecord.cs
- TreeSet.cs
- BatchWriter.cs
- VectorAnimationBase.cs
- ipaddressinformationcollection.cs
- UserControlParser.cs
- GenericTextProperties.cs
- PipelineModuleStepContainer.cs
- HtmlInputPassword.cs
- BatchWriter.cs
- NativeMethods.cs
- ReferencedAssembly.cs