Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / OutputScope.cs / 1305376 / 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 (Ref.Equal(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 (Ref.Equal(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
- DecoratedNameAttribute.cs
- RelationshipWrapper.cs
- PanelStyle.cs
- TraceHelpers.cs
- AxisAngleRotation3D.cs
- QueryCacheKey.cs
- DataGridViewTopLeftHeaderCell.cs
- HiddenFieldPageStatePersister.cs
- MethodCallConverter.cs
- WebControlAdapter.cs
- TypeSystemProvider.cs
- XmlChoiceIdentifierAttribute.cs
- HScrollProperties.cs
- GPPOINTF.cs
- XmlSchemaAll.cs
- Stack.cs
- DataColumnCollection.cs
- AnnotationStore.cs
- SessionIDManager.cs
- ExpressionBuilderContext.cs
- XmlChildNodes.cs
- RequestChannel.cs
- CustomTypeDescriptor.cs
- XsltCompileContext.cs
- ColorBlend.cs
- DynamicActionMessageFilter.cs
- GeometryModel3D.cs
- TargetInvocationException.cs
- UnsafeNativeMethods.cs
- DataGridBoolColumn.cs
- CodeSnippetExpression.cs
- ParsedAttributeCollection.cs
- PlaceHolder.cs
- CellLabel.cs
- DataBinding.cs
- ExtractedStateEntry.cs
- FragmentQuery.cs
- SqlConnectionString.cs
- AddInSegmentDirectoryNotFoundException.cs
- ScriptControlDescriptor.cs
- HatchBrush.cs
- TemplateXamlParser.cs
- WebConfigurationHost.cs
- HttpCapabilitiesEvaluator.cs
- WebEventTraceProvider.cs
- SettingsAttributeDictionary.cs
- PointAnimationUsingPath.cs
- ServiceParser.cs
- ActivityDesignerHelper.cs
- PipelineModuleStepContainer.cs
- XhtmlConformanceSection.cs
- ManifestSignedXml.cs
- ProfileInfo.cs
- Application.cs
- TextRangeProviderWrapper.cs
- Highlights.cs
- isolationinterop.cs
- HuffmanTree.cs
- RemotingServices.cs
- ListView.cs
- Helpers.cs
- SimpleMailWebEventProvider.cs
- DeferredTextReference.cs
- WindowsGraphicsWrapper.cs
- IIS7UserPrincipal.cs
- TdsValueSetter.cs
- LinqToSqlWrapper.cs
- FileDialogCustomPlace.cs
- OutputCacheSection.cs
- CalendarTable.cs
- CapiNative.cs
- ReturnEventArgs.cs
- RSAPKCS1SignatureDeformatter.cs
- SearchForVirtualItemEventArgs.cs
- SafeNativeMethodsCLR.cs
- StringPropertyBuilder.cs
- CodeTypeConstructor.cs
- GridViewRowEventArgs.cs
- StandardOleMarshalObject.cs
- StringComparer.cs
- ISCIIEncoding.cs
- TemplateKeyConverter.cs
- ThousandthOfEmRealPoints.cs
- WindowHideOrCloseTracker.cs
- ResourceSet.cs
- QueryCursorEventArgs.cs
- HtmlLiteralTextAdapter.cs
- DecoderBestFitFallback.cs
- OpenTypeCommon.cs
- UIPermission.cs
- ToolTipService.cs
- IndexExpression.cs
- PolicyStatement.cs
- FileVersion.cs
- Form.cs
- WebOperationContext.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- CatalogZoneBase.cs
- Rotation3DAnimation.cs