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
- ArgumentValidation.cs
- _ListenerAsyncResult.cs
- ControlAdapter.cs
- ServiceDeploymentInfo.cs
- X509SecurityTokenParameters.cs
- XslTransform.cs
- CacheChildrenQuery.cs
- InitializerFacet.cs
- ThumbButtonInfoCollection.cs
- ListViewInsertedEventArgs.cs
- Brush.cs
- ColumnHeaderConverter.cs
- SafeLibraryHandle.cs
- CustomAttributeBuilder.cs
- PropertyStore.cs
- TripleDES.cs
- UpdateExpressionVisitor.cs
- AdRotator.cs
- MimeWriter.cs
- XmlReader.cs
- InputProviderSite.cs
- FixedSOMImage.cs
- WebZoneDesigner.cs
- WeakRefEnumerator.cs
- ExpressionBuilder.cs
- MediaCommands.cs
- SqlCaseSimplifier.cs
- Marshal.cs
- DetailsViewRowCollection.cs
- FixedPageAutomationPeer.cs
- TableRowCollection.cs
- ExpressionLink.cs
- MdiWindowListItemConverter.cs
- CoreSwitches.cs
- SimpleExpression.cs
- DbParameterCollectionHelper.cs
- ResourcePart.cs
- TransformProviderWrapper.cs
- StylusButtonEventArgs.cs
- ProxyWebPartManager.cs
- RestHandler.cs
- LambdaCompiler.ControlFlow.cs
- PackageStore.cs
- XAMLParseException.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- ControlBuilderAttribute.cs
- DrawingState.cs
- HMACMD5.cs
- StyleCollection.cs
- ViewStateModeByIdAttribute.cs
- XmlHierarchicalDataSourceView.cs
- WebPartZoneCollection.cs
- _SSPISessionCache.cs
- ToolStripComboBox.cs
- ReferentialConstraintRoleElement.cs
- COM2ColorConverter.cs
- HttpConfigurationSystem.cs
- HttpRequestBase.cs
- PartitionedStream.cs
- COAUTHINFO.cs
- AnnouncementService.cs
- RemoveStoryboard.cs
- ToolBarPanel.cs
- EntityFrameworkVersions.cs
- ImageList.cs
- XmlChoiceIdentifierAttribute.cs
- OpenTypeLayout.cs
- DesignRelationCollection.cs
- StateMachineHelpers.cs
- CompilationLock.cs
- EraserBehavior.cs
- XmlSchemaIdentityConstraint.cs
- manifestimages.cs
- WindowVisualStateTracker.cs
- BigInt.cs
- Pen.cs
- OdbcParameterCollection.cs
- Calendar.cs
- SqlCacheDependencyDatabaseCollection.cs
- EnumerableRowCollection.cs
- SQLString.cs
- CollectionCodeDomSerializer.cs
- Signature.cs
- VisemeEventArgs.cs
- RichTextBox.cs
- OracleDataReader.cs
- WorkflowViewStateService.cs
- ResXBuildProvider.cs
- SqlDataReader.cs
- ValidationHelpers.cs
- RNGCryptoServiceProvider.cs
- InstanceOwnerException.cs
- Encoding.cs
- FigureParagraph.cs
- Pen.cs
- Utils.cs
- NativeBuffer.cs
- CheckBox.cs
- CollectionViewGroup.cs
- DebugHandleTracker.cs