Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SelectedGridItemChangedEvent.cs
- HandlerFactoryCache.cs
- DbDataAdapter.cs
- processwaithandle.cs
- ButtonStandardAdapter.cs
- ProvideValueServiceProvider.cs
- returneventsaver.cs
- Item.cs
- VerticalAlignConverter.cs
- AssociationEndMember.cs
- MsmqIntegrationProcessProtocolHandler.cs
- EmbeddedObject.cs
- AssociationType.cs
- PolyLineSegment.cs
- JsonMessageEncoderFactory.cs
- Int32Rect.cs
- XmlILModule.cs
- _ContextAwareResult.cs
- FileEnumerator.cs
- ExpressionDumper.cs
- BamlResourceDeserializer.cs
- EncryptedKey.cs
- PipelineDeploymentState.cs
- UshortList2.cs
- DataListItemEventArgs.cs
- BigInt.cs
- DataTablePropertyDescriptor.cs
- ConfigurationHandlersInstallComponent.cs
- ConfigurationSettings.cs
- ForEach.cs
- CalloutQueueItem.cs
- IgnoreFileBuildProvider.cs
- XmlSchemaExporter.cs
- isolationinterop.cs
- ProtocolsConfigurationEntry.cs
- ResXResourceSet.cs
- Matrix3DValueSerializer.cs
- InkCollectionBehavior.cs
- WinFormsComponentEditor.cs
- ConversionHelper.cs
- InvalidDataException.cs
- TraceLog.cs
- AttachedAnnotationChangedEventArgs.cs
- OleCmdHelper.cs
- ToolStripLabel.cs
- Stack.cs
- XmlUtil.cs
- HeaderedItemsControl.cs
- StylusPointPropertyInfo.cs
- ServiceMemoryGates.cs
- _ConnectStream.cs
- HwndTarget.cs
- AutomationPropertyInfo.cs
- X509IssuerSerialKeyIdentifierClause.cs
- FilterRepeater.cs
- StylusTouchDevice.cs
- ContentControl.cs
- CheckBoxFlatAdapter.cs
- ReturnType.cs
- SmtpReplyReaderFactory.cs
- clipboard.cs
- HtmlInputText.cs
- GridViewRowCollection.cs
- EditableRegion.cs
- BooleanSwitch.cs
- SHA256Cng.cs
- LeafCellTreeNode.cs
- KnowledgeBase.cs
- CorrelationActionMessageFilter.cs
- ObjectPropertyMapping.cs
- InputReportEventArgs.cs
- InheritanceAttribute.cs
- ClientSettingsSection.cs
- BinaryObjectInfo.cs
- PropertyOrder.cs
- DataGridViewColumnEventArgs.cs
- CreateUserWizardStep.cs
- XmlWriterTraceListener.cs
- XamlInterfaces.cs
- BindingEntityInfo.cs
- TextBoxRenderer.cs
- DataComponentGenerator.cs
- ManagementPath.cs
- PhoneCallDesigner.cs
- AsyncDataRequest.cs
- BasicViewGenerator.cs
- SkipStoryboardToFill.cs
- DispatchWrapper.cs
- PocoEntityKeyStrategy.cs
- InstanceDataCollectionCollection.cs
- WebMessageEncodingBindingElement.cs
- ParamArrayAttribute.cs
- InvalidCommandTreeException.cs
- SystemTcpStatistics.cs
- XmlLinkedNode.cs
- ConnectionStringsExpressionBuilder.cs
- ReferenceSchema.cs
- PriorityQueue.cs
- EventProxy.cs
- CompositeScriptReferenceEventArgs.cs