Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Stroke2.cs
- FileVersion.cs
- XmlFormatExtensionAttribute.cs
- MasterPage.cs
- FormView.cs
- XNameTypeConverter.cs
- MarshalByValueComponent.cs
- SelectionItemProviderWrapper.cs
- DataShape.cs
- ExtractedStateEntry.cs
- ExceptionHelpers.cs
- DesignTimeParseData.cs
- ListViewAutomationPeer.cs
- CodeTypeReferenceCollection.cs
- XmlSerializationWriter.cs
- GestureRecognitionResult.cs
- Base64Stream.cs
- UseAttributeSetsAction.cs
- UrlPath.cs
- Quaternion.cs
- PropertyIDSet.cs
- WSHttpSecurity.cs
- UIElementIsland.cs
- XmlSchemaObjectCollection.cs
- ClrPerspective.cs
- InfoCardUIAgent.cs
- ApplicationInfo.cs
- MemberAssignmentAnalysis.cs
- SelectionEditor.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- Certificate.cs
- GeometryGroup.cs
- Activator.cs
- RootProfilePropertySettingsCollection.cs
- PreservationFileReader.cs
- ContentDesigner.cs
- PermissionToken.cs
- BounceEase.cs
- PeerNameResolver.cs
- NameScopePropertyAttribute.cs
- EventPropertyMap.cs
- MatrixTransform.cs
- LogicalMethodInfo.cs
- sqlser.cs
- TabletDevice.cs
- EventsTab.cs
- ObjectTag.cs
- StreamReader.cs
- UpdateEventArgs.cs
- XmlSchemaObjectCollection.cs
- PostBackTrigger.cs
- IntegerFacetDescriptionElement.cs
- LicenseContext.cs
- LogManagementAsyncResult.cs
- ValidationRuleCollection.cs
- basevalidator.cs
- EntityDataSourceDesignerHelper.cs
- KeyedHashAlgorithm.cs
- FieldAccessException.cs
- MapPathBasedVirtualPathProvider.cs
- OdbcTransaction.cs
- DetailsViewRowCollection.cs
- WebPartVerb.cs
- ConfigurationFileMap.cs
- GenericWebPart.cs
- FileChangesMonitor.cs
- IPipelineRuntime.cs
- SparseMemoryStream.cs
- _ShellExpression.cs
- FontWeightConverter.cs
- RSAProtectedConfigurationProvider.cs
- HttpListenerPrefixCollection.cs
- IOThreadTimer.cs
- XmlNullResolver.cs
- GridProviderWrapper.cs
- PageContentCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- ConvertBinder.cs
- TreeWalker.cs
- IndexedGlyphRun.cs
- XmlTextWriter.cs
- SqlServer2KCompatibilityCheck.cs
- KeySpline.cs
- FileUtil.cs
- ObjectViewQueryResultData.cs
- CachedFontFamily.cs
- DbDataSourceEnumerator.cs
- Freezable.cs
- ControlDesigner.cs
- JapaneseCalendar.cs
- QueryOutputWriter.cs
- FileDetails.cs
- DateTimeFormatInfoScanner.cs
- EqualityComparer.cs
- BinaryFormatterWriter.cs
- RequestTimeoutManager.cs
- BamlVersionHeader.cs
- DateTimeOffsetAdapter.cs
- PixelShader.cs
- LayoutDump.cs