Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- PassportIdentity.cs
- PtsHelper.cs
- MenuItem.cs
- DataGrid.cs
- ComponentRenameEvent.cs
- CommentAction.cs
- XhtmlStyleClass.cs
- StrokeIntersection.cs
- SrgsGrammarCompiler.cs
- StackSpiller.Temps.cs
- ProfileInfo.cs
- CommunicationObjectManager.cs
- DiagnosticsConfiguration.cs
- ArrangedElementCollection.cs
- DateTimeValueSerializer.cs
- ScaleTransform3D.cs
- ipaddressinformationcollection.cs
- UnauthorizedAccessException.cs
- SoapSchemaMember.cs
- ZipQueryOperator.cs
- ImageSource.cs
- HttpApplicationFactory.cs
- CollectionViewProxy.cs
- LayoutTable.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- AutomationProperty.cs
- ControlDesignerState.cs
- CompensationHandlingFilter.cs
- ReadOnlyDataSourceView.cs
- IImplicitResourceProvider.cs
- SQLBinaryStorage.cs
- VisualTreeUtils.cs
- CompilerTypeWithParams.cs
- DataGridViewTextBoxCell.cs
- DataBindEngine.cs
- NodeCounter.cs
- BehaviorEditorPart.cs
- UnsafeNativeMethods.cs
- OverrideMode.cs
- BaseParaClient.cs
- TimeEnumHelper.cs
- RegexTree.cs
- EmbeddedObject.cs
- wmiprovider.cs
- Condition.cs
- DataGridViewCellValidatingEventArgs.cs
- DesignTimeTemplateParser.cs
- AutomationElementCollection.cs
- RelationshipNavigation.cs
- InternalConfigHost.cs
- BamlBinaryReader.cs
- PathBox.cs
- RoutedPropertyChangedEventArgs.cs
- HotSpot.cs
- GeometryCombineModeValidation.cs
- ClientConfigurationSystem.cs
- TextRange.cs
- JsonReaderWriterFactory.cs
- BamlRecordReader.cs
- TimeSpan.cs
- QueueProcessor.cs
- CreateRefExpr.cs
- ProfilePropertySettingsCollection.cs
- WebServiceTypeData.cs
- MediaScriptCommandRoutedEventArgs.cs
- Helper.cs
- Queue.cs
- QilBinary.cs
- GridPattern.cs
- Int32CAMarshaler.cs
- XhtmlTextWriter.cs
- PartBasedPackageProperties.cs
- HtmlInputSubmit.cs
- ListViewUpdatedEventArgs.cs
- XmlSchemaComplexContent.cs
- DbDataRecord.cs
- WebPartManager.cs
- OLEDB_Util.cs
- DataPagerField.cs
- SystemFonts.cs
- MinimizableAttributeTypeConverter.cs
- CodeBinaryOperatorExpression.cs
- DataAdapter.cs
- PropertyEmitterBase.cs
- PermissionSetTriple.cs
- HScrollProperties.cs
- TdsParameterSetter.cs
- TabItem.cs
- ViewEvent.cs
- RegexBoyerMoore.cs
- DataGridViewColumnCollection.cs
- ValidatedControlConverter.cs
- ScriptIgnoreAttribute.cs
- SchemaImporter.cs
- BatchServiceHost.cs
- GlobalDataBindingHandler.cs
- SHA256CryptoServiceProvider.cs
- OperationContractAttribute.cs
- UserPersonalizationStateInfo.cs
- InvalidateEvent.cs