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
- HtmlHead.cs
- PersianCalendar.cs
- IisTraceWebEventProvider.cs
- PrintPreviewGraphics.cs
- ResourceDictionaryCollection.cs
- ErrorFormatter.cs
- CustomTrackingRecord.cs
- AtomEntry.cs
- MetadataItem.cs
- MarshalDirectiveException.cs
- Converter.cs
- SecurityState.cs
- DataServiceCollectionOfT.cs
- _BufferOffsetSize.cs
- NamespaceCollection.cs
- InputScope.cs
- MouseEventArgs.cs
- DataControlCommands.cs
- DataGridViewCellConverter.cs
- XmlUTF8TextWriter.cs
- FontStyle.cs
- PersonalizationProviderCollection.cs
- oledbmetadatacollectionnames.cs
- OrthographicCamera.cs
- OperationFormatUse.cs
- ContentPosition.cs
- MetafileHeader.cs
- DataServiceQuery.cs
- TextPointerBase.cs
- Margins.cs
- PersonalizationProviderCollection.cs
- HwndAppCommandInputProvider.cs
- TypeForwardedToAttribute.cs
- RoleService.cs
- StringAnimationBase.cs
- AutoSizeToolBoxItem.cs
- DataGridViewCellStyleConverter.cs
- DivideByZeroException.cs
- ActivityExecutorDelegateInfo.cs
- MultipleViewPatternIdentifiers.cs
- NumberFormatInfo.cs
- SafeArrayRankMismatchException.cs
- SweepDirectionValidation.cs
- GPPOINTF.cs
- CodeMemberField.cs
- WebPartExportVerb.cs
- SqlBulkCopy.cs
- HtmlInputHidden.cs
- GridLengthConverter.cs
- SkipStoryboardToFill.cs
- ResourceManager.cs
- PauseStoryboard.cs
- HttpCachePolicy.cs
- AttributeCollection.cs
- CounterCreationDataConverter.cs
- PlacementWorkspace.cs
- LogicalExpr.cs
- OdbcCommand.cs
- FixedTextView.cs
- CSharpCodeProvider.cs
- BaseParagraph.cs
- ThicknessConverter.cs
- SchemaEntity.cs
- HealthMonitoringSection.cs
- ApplicationDirectory.cs
- LocalizationParserHooks.cs
- InternalUserCancelledException.cs
- SqlNotificationEventArgs.cs
- ItemCheckedEvent.cs
- StrongNameMembershipCondition.cs
- ArithmeticException.cs
- arabicshape.cs
- PeerObject.cs
- ProjectionCamera.cs
- ChtmlTextBoxAdapter.cs
- SQLDecimal.cs
- ColorContextHelper.cs
- NullableBoolConverter.cs
- CodeDomSerializerBase.cs
- ScalarConstant.cs
- SecurityDocument.cs
- SevenBitStream.cs
- BitmapEffectDrawingContextWalker.cs
- CatalogPartChrome.cs
- FilterException.cs
- TreeNode.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SecUtil.cs
- EventPrivateKey.cs
- EndGetFileNameFromUserRequest.cs
- XmlWellformedWriter.cs
- AssemblyResourceLoader.cs
- SafeCoTaskMem.cs
- TraceHandlerErrorFormatter.cs
- JoinQueryOperator.cs
- StrongNameUtility.cs
- AdPostCacheSubstitution.cs
- StringKeyFrameCollection.cs
- WebPartTracker.cs
- EntityContainerRelationshipSetEnd.cs