Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / OutputScope.cs / 1 / OutputScope.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; internal class OutputScope : DocumentScope { private string name; private string nsUri; private string prefix; private XmlSpace space; private string lang; private bool mixed; private bool toCData; private HtmlElementProps htmlElementProps; // in HTML output -- atomized name of element internal string Name { get { return this.name; } } internal string Namespace { get { return this.nsUri; } } internal string Prefix { get { return this.prefix; } set { this.prefix = value; } } internal XmlSpace Space { get { return this.space; } set { this.space = value; } } internal string Lang { get { return this.lang; } set { this.lang = value; } } internal bool Mixed { get { return this.mixed; } set { this.mixed = value; } } internal bool ToCData { get { return this.toCData; } set { this.toCData = value; } } internal HtmlElementProps HtmlElementProps { get { return this.htmlElementProps; } set { this.htmlElementProps = value; } } internal OutputScope() { Init(string.Empty, string.Empty, string.Empty, XmlSpace.None, string.Empty, false); } internal void Init(string name, string nspace, string prefix, XmlSpace space, string lang, bool mixed) { this.scopes = null; this.name = name; this.nsUri = nspace; this.prefix = prefix; this.space = space; this.lang = lang; this.mixed = mixed; this.toCData = false; this.htmlElementProps = null; } internal bool FindPrefix(string urn, out string prefix) { Debug.Assert(urn != null); for (NamespaceDecl scope = this.scopes; scope != null; scope = scope.Next) { if (Keywords.Equals(scope.Uri, urn) && scope.Prefix != null && scope.Prefix.Length > 0) { prefix = scope.Prefix; return true; } } prefix = string.Empty; return false; } } } // 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; internal class OutputScope : DocumentScope { private string name; private string nsUri; private string prefix; private XmlSpace space; private string lang; private bool mixed; private bool toCData; private HtmlElementProps htmlElementProps; // in HTML output -- atomized name of element internal string Name { get { return this.name; } } internal string Namespace { get { return this.nsUri; } } internal string Prefix { get { return this.prefix; } set { this.prefix = value; } } internal XmlSpace Space { get { return this.space; } set { this.space = value; } } internal string Lang { get { return this.lang; } set { this.lang = value; } } internal bool Mixed { get { return this.mixed; } set { this.mixed = value; } } internal bool ToCData { get { return this.toCData; } set { this.toCData = value; } } internal HtmlElementProps HtmlElementProps { get { return this.htmlElementProps; } set { this.htmlElementProps = value; } } internal OutputScope() { Init(string.Empty, string.Empty, string.Empty, XmlSpace.None, string.Empty, false); } internal void Init(string name, string nspace, string prefix, XmlSpace space, string lang, bool mixed) { this.scopes = null; this.name = name; this.nsUri = nspace; this.prefix = prefix; this.space = space; this.lang = lang; this.mixed = mixed; this.toCData = false; this.htmlElementProps = null; } internal bool FindPrefix(string urn, out string prefix) { Debug.Assert(urn != null); for (NamespaceDecl scope = this.scopes; scope != null; scope = scope.Next) { if (Keywords.Equals(scope.Uri, urn) && scope.Prefix != null && scope.Prefix.Length > 0) { prefix = scope.Prefix; return true; } } prefix = string.Empty; return false; } } } // 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
- sqlser.cs
- PointHitTestResult.cs
- EntityDataSourceState.cs
- ListBoxChrome.cs
- SourceFileBuildProvider.cs
- ProfileServiceManager.cs
- ValueProviderWrapper.cs
- GeneralTransform2DTo3DTo2D.cs
- CollectionEditVerbManager.cs
- TemplateControl.cs
- SqlCacheDependency.cs
- WebPartVerb.cs
- Command.cs
- IteratorFilter.cs
- DispatcherSynchronizationContext.cs
- DriveInfo.cs
- RoleManagerSection.cs
- WinFormsComponentEditor.cs
- StoreItemCollection.Loader.cs
- IsolatedStorage.cs
- SQLGuid.cs
- ConstantCheck.cs
- DataReceivedEventArgs.cs
- TypeSystem.cs
- TypePresenter.xaml.cs
- VirtualPathProvider.cs
- ColumnResizeUndoUnit.cs
- DbConnectionFactory.cs
- IndexerReference.cs
- StreamInfo.cs
- X509SecurityTokenProvider.cs
- WSSecurityPolicy12.cs
- ReverseInheritProperty.cs
- BroadcastEventHelper.cs
- TaskFormBase.cs
- TargetException.cs
- QueryResponse.cs
- AttributeSetAction.cs
- ScriptReferenceEventArgs.cs
- ActivityBuilderXamlWriter.cs
- CompiledIdentityConstraint.cs
- Psha1DerivedKeyGenerator.cs
- ThreadStateException.cs
- ThicknessAnimation.cs
- WebPartUtil.cs
- FieldMetadata.cs
- AdapterUtil.cs
- Accessible.cs
- SettingsSavedEventArgs.cs
- SystemIPv6InterfaceProperties.cs
- SystemFonts.cs
- DocumentApplication.cs
- HttpListenerResponse.cs
- XmlEntity.cs
- WebPartMenu.cs
- SimpleFileLog.cs
- SystemBrushes.cs
- CompositeScriptReference.cs
- QilChoice.cs
- TextServicesCompartmentContext.cs
- DataGridViewCellStyle.cs
- CreateRefExpr.cs
- OutputCacheSettingsSection.cs
- InlinedAggregationOperator.cs
- XmlToDatasetMap.cs
- DataAdapter.cs
- BrowserCapabilitiesFactoryBase.cs
- VisualTreeHelper.cs
- ClientCredentialsSecurityTokenManager.cs
- NamedPipeAppDomainProtocolHandler.cs
- DesignerCommandAdapter.cs
- MarkupObject.cs
- ListControl.cs
- DiscoveryExceptionDictionary.cs
- MobileRedirect.cs
- OdbcEnvironmentHandle.cs
- MethodBuilderInstantiation.cs
- NTAccount.cs
- ConfigXmlElement.cs
- CodeAttributeArgumentCollection.cs
- Trace.cs
- BindingCollection.cs
- WebPartDisplayMode.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlSchemaSequence.cs
- GridItemPattern.cs
- dataprotectionpermissionattribute.cs
- SAPICategories.cs
- DocumentViewerBase.cs
- SQLInt16Storage.cs
- ViewStateException.cs
- DataServiceQueryOfT.cs
- IncomingWebRequestContext.cs
- FlowDocumentView.cs
- Menu.cs
- DbQueryCommandTree.cs
- GridPatternIdentifiers.cs
- ProfileProvider.cs
- WebPartZoneBaseDesigner.cs
- MissingManifestResourceException.cs