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
- WindowHelperService.cs
- XmlUnspecifiedAttribute.cs
- configsystem.cs
- WindowsStartMenu.cs
- SchemaMapping.cs
- ObjectDataSourceFilteringEventArgs.cs
- IntSecurity.cs
- CompModSwitches.cs
- StylusCollection.cs
- BufferBuilder.cs
- DataBindEngine.cs
- FixedTextSelectionProcessor.cs
- ConfigurationValue.cs
- Object.cs
- TypeLibConverter.cs
- InvalidDocumentContentsException.cs
- XmlReaderSettings.cs
- MenuAdapter.cs
- StreamSecurityUpgradeAcceptorBase.cs
- Thread.cs
- path.cs
- EnumMember.cs
- ReceiveMessageContent.cs
- ServiceActivationException.cs
- __Error.cs
- DataBoundControlAdapter.cs
- AssociationEndMember.cs
- HttpException.cs
- Border.cs
- CodeCommentStatementCollection.cs
- EnumType.cs
- LateBoundBitmapDecoder.cs
- HttpCacheParams.cs
- CompilerGeneratedAttribute.cs
- WebPartsPersonalization.cs
- UniqueCodeIdentifierScope.cs
- VarInfo.cs
- SpecialFolderEnumConverter.cs
- XmlSchemaAttributeGroup.cs
- NameValueFileSectionHandler.cs
- StdRegProviderWrapper.cs
- MsmqIntegrationSecurity.cs
- AttachmentCollection.cs
- X500Name.cs
- KeyedCollection.cs
- ColumnCollection.cs
- DateTimeValueSerializerContext.cs
- Point3DCollection.cs
- AudioBase.cs
- ColorBlend.cs
- KeyTime.cs
- InvalidCastException.cs
- HexParser.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- GeneralTransform2DTo3DTo2D.cs
- DataView.cs
- TypedReference.cs
- EventHandlers.cs
- RoleGroup.cs
- NodeInfo.cs
- DeferredSelectedIndexReference.cs
- DetailsViewCommandEventArgs.cs
- DependencyPropertyKey.cs
- SQLInt64Storage.cs
- ChangePassword.cs
- CancellationTokenRegistration.cs
- ViewGenerator.cs
- NGCSerializationManagerAsync.cs
- DnsElement.cs
- ListMarkerSourceInfo.cs
- ItemTypeToolStripMenuItem.cs
- ImageIndexEditor.cs
- SecurityBindingElementImporter.cs
- SafeNativeMethods.cs
- validationstate.cs
- StylusPoint.cs
- WriteLineDesigner.xaml.cs
- SelectionEditor.cs
- PeerNearMe.cs
- ThaiBuddhistCalendar.cs
- ChtmlCommandAdapter.cs
- CodeDirectoryCompiler.cs
- StandardCommands.cs
- TabControlAutomationPeer.cs
- EventSourceCreationData.cs
- EntityDataSourceEntityTypeFilterItem.cs
- Attributes.cs
- FormatControl.cs
- SmtpLoginAuthenticationModule.cs
- Options.cs
- SourceElementsCollection.cs
- Matrix.cs
- XmlDocumentType.cs
- Clipboard.cs
- EntitySqlQueryBuilder.cs
- _ProxyRegBlob.cs
- TreeWalkHelper.cs
- PrimaryKeyTypeConverter.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DeploymentSectionCache.cs