Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSecureResolver.cs
- DoubleAnimationClockResource.cs
- DataGridView.cs
- ChangePassword.cs
- RestClientProxyHandler.cs
- SecurityContext.cs
- ReadWriteSpinLock.cs
- SqlUserDefinedTypeAttribute.cs
- SafeBitVector32.cs
- TreeViewHitTestInfo.cs
- HandleExceptionArgs.cs
- Documentation.cs
- ReaderOutput.cs
- TextTreeNode.cs
- MultiTrigger.cs
- DataSourceSelectArguments.cs
- DataServiceQueryOfT.cs
- httpapplicationstate.cs
- CodeBinaryOperatorExpression.cs
- SqlClientWrapperSmiStreamChars.cs
- XmlSchemaAny.cs
- FormsAuthenticationCredentials.cs
- Compilation.cs
- MissingManifestResourceException.cs
- BinHexDecoder.cs
- XmlSubtreeReader.cs
- XmlNode.cs
- SqlDataSourceQuery.cs
- Base64Decoder.cs
- InvokeMethodActivity.cs
- HMAC.cs
- WmlObjectListAdapter.cs
- DecimalFormatter.cs
- Focus.cs
- SRGSCompiler.cs
- HttpRuntime.cs
- ApplicationBuildProvider.cs
- InternalSafeNativeMethods.cs
- WebPartsPersonalization.cs
- ProfilePropertySettingsCollection.cs
- Identity.cs
- SynchronizingStream.cs
- ObjectStorage.cs
- DataBindingCollection.cs
- ExtractorMetadata.cs
- COM2PictureConverter.cs
- StringUtil.cs
- QualifiedCellIdBoolean.cs
- Classification.cs
- XmlNavigatorStack.cs
- DataColumnMapping.cs
- LoginStatusDesigner.cs
- KeyTimeConverter.cs
- Helpers.cs
- HttpInputStream.cs
- TableAdapterManagerNameHandler.cs
- MarkupObject.cs
- GeneralTransformGroup.cs
- DateTimeConstantAttribute.cs
- WmlLinkAdapter.cs
- DbBuffer.cs
- Delay.cs
- XsltLibrary.cs
- ObjectManager.cs
- DiscoveryClientChannelBase.cs
- BitmapVisualManager.cs
- GeneralTransform2DTo3D.cs
- AddInIpcChannel.cs
- TextRangeEditLists.cs
- StatusBarItem.cs
- BinaryConverter.cs
- CheckBox.cs
- EditorAttribute.cs
- ObjectSet.cs
- HttpModuleCollection.cs
- NegatedCellConstant.cs
- TextParagraph.cs
- DbConnectionPoolGroupProviderInfo.cs
- PerformanceCounterManager.cs
- ScaleTransform3D.cs
- EventTask.cs
- ServiceObjectContainer.cs
- CodeCommentStatement.cs
- TdsParserSessionPool.cs
- _SslState.cs
- EventMap.cs
- Stack.cs
- SortKey.cs
- ConfigurationStrings.cs
- WebPartConnection.cs
- Message.cs
- DbInsertCommandTree.cs
- CodeEventReferenceExpression.cs
- PersonalizationProvider.cs
- UnknownBitmapDecoder.cs
- SchemaCollectionPreprocessor.cs
- Point.cs
- RoutedEventValueSerializer.cs
- NumberSubstitution.cs
- ObjectQueryExecutionPlan.cs