Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ConstructorBuilder.cs
- ConfigurationManagerInternalFactory.cs
- TraceListener.cs
- WasAdminWrapper.cs
- AdornerLayer.cs
- SqlAliasesReferenced.cs
- AuthorizationSection.cs
- DataBindingValueUIHandler.cs
- MailAddress.cs
- ChangePassword.cs
- CookielessHelper.cs
- ToolStripItemTextRenderEventArgs.cs
- SpecialFolderEnumConverter.cs
- CalendarAutoFormatDialog.cs
- Buffer.cs
- DataControlLinkButton.cs
- ValidationPropertyAttribute.cs
- IgnoreSection.cs
- DefaultValueTypeConverter.cs
- Compiler.cs
- GatewayIPAddressInformationCollection.cs
- FixedDSBuilder.cs
- ManagementEventArgs.cs
- ValueUtilsSmi.cs
- GradientSpreadMethodValidation.cs
- InsufficientMemoryException.cs
- EntityTransaction.cs
- ManagementExtension.cs
- ModelItemKeyValuePair.cs
- MenuItemStyleCollection.cs
- SimpleModelProvider.cs
- EncoderExceptionFallback.cs
- _NegoStream.cs
- Matrix3DStack.cs
- ColorInterpolationModeValidation.cs
- CodeTypeMemberCollection.cs
- ServiceMetadataBehavior.cs
- ServiceInfo.cs
- NativeMethods.cs
- DesignerCategoryAttribute.cs
- SizeFConverter.cs
- RelationshipEndMember.cs
- TextDecorations.cs
- DelegatingHeader.cs
- XmlSchemaSimpleContentExtension.cs
- XMLSyntaxException.cs
- X509SubjectKeyIdentifierClause.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- FileDialog_Vista_Interop.cs
- XPathNodeInfoAtom.cs
- ConfigurationFileMap.cs
- RouteTable.cs
- MediaCommands.cs
- ProviderCollection.cs
- ConfigXmlSignificantWhitespace.cs
- SortQuery.cs
- PerformanceCounterLib.cs
- DynamicDiscoSearcher.cs
- BitmapEffectGroup.cs
- PowerStatus.cs
- BasicHttpMessageSecurity.cs
- XmlMapping.cs
- SeekStoryboard.cs
- OleDbFactory.cs
- _AuthenticationState.cs
- SchemaTypeEmitter.cs
- objectresult_tresulttype.cs
- _NegotiateClient.cs
- XmlSchemaComplexContentExtension.cs
- RegisteredHiddenField.cs
- WebConfigurationManager.cs
- GACIdentityPermission.cs
- PriorityItem.cs
- VisualTransition.cs
- DataKeyArray.cs
- CommandEventArgs.cs
- AppDomainAttributes.cs
- EntityDataSourceContainerNameItem.cs
- RenamedEventArgs.cs
- XmlHelper.cs
- SqlWorkflowPersistenceService.cs
- AttachedPropertyBrowsableAttribute.cs
- WmlCommandAdapter.cs
- HtmlWindowCollection.cs
- WorkflowOperationErrorHandler.cs
- AncestorChangedEventArgs.cs
- HttpWebRequest.cs
- WinInetCache.cs
- AttachInfo.cs
- _NegoStream.cs
- DbBuffer.cs
- DataGridViewIntLinkedList.cs
- fixedPageContentExtractor.cs
- WebPartAuthorizationEventArgs.cs
- VariantWrapper.cs
- ConfigurationPropertyCollection.cs
- CredentialManagerDialog.cs
- MetadataPropertyCollection.cs
- UICuesEvent.cs
- StorageConditionPropertyMapping.cs