Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MessageQueueCriteria.cs
- DataGridViewLayoutData.cs
- ForAllOperator.cs
- GroupBox.cs
- TextPatternIdentifiers.cs
- TileModeValidation.cs
- PaintEvent.cs
- RecommendedAsConfigurableAttribute.cs
- ActiveXHelper.cs
- WmpBitmapEncoder.cs
- PageEventArgs.cs
- DataServiceResponse.cs
- DbDataSourceEnumerator.cs
- VisualBrush.cs
- WindowsFormsSynchronizationContext.cs
- StorageSetMapping.cs
- SchemaConstraints.cs
- MediaPlayerState.cs
- _HeaderInfo.cs
- CompiledAction.cs
- Point4D.cs
- PrintingPermission.cs
- CollectionViewProxy.cs
- prompt.cs
- Blend.cs
- TextOutput.cs
- VirtualizingPanel.cs
- GridItemPatternIdentifiers.cs
- PerformanceCounterLib.cs
- SinglePageViewer.cs
- WebPartCloseVerb.cs
- SafeThreadHandle.cs
- ping.cs
- TiffBitmapDecoder.cs
- TouchesOverProperty.cs
- DrawingBrush.cs
- OuterGlowBitmapEffect.cs
- ReadWriteSpinLock.cs
- RecognizedAudio.cs
- documentsequencetextpointer.cs
- SQLInt64.cs
- DbDataSourceEnumerator.cs
- TextDecoration.cs
- RevocationPoint.cs
- ProxyFragment.cs
- Configuration.cs
- TemplateBindingExpression.cs
- CharAnimationUsingKeyFrames.cs
- StorageAssociationSetMapping.cs
- Filter.cs
- SkinBuilder.cs
- XmlSchemaImporter.cs
- PrefixQName.cs
- ObjectQuery.cs
- WebContext.cs
- TypeSystemHelpers.cs
- ToolStripDropDownClosingEventArgs.cs
- MailMessageEventArgs.cs
- TextSelectionHelper.cs
- SystemGatewayIPAddressInformation.cs
- ScriptReference.cs
- InfoCardKeyedHashAlgorithm.cs
- HtmlValidationSummaryAdapter.cs
- HttpCachePolicyElement.cs
- AsyncCodeActivity.cs
- ParsedAttributeCollection.cs
- _ChunkParse.cs
- SqlBulkCopy.cs
- GenerateDerivedKeyRequest.cs
- PropertyGridView.cs
- HtmlMeta.cs
- Stack.cs
- ProjectionRewriter.cs
- WorkflowTransactionService.cs
- DesignerInterfaces.cs
- ScriptReferenceBase.cs
- ManipulationStartingEventArgs.cs
- WindowsListViewItem.cs
- CounterCreationData.cs
- TraceHandlerErrorFormatter.cs
- ConvertersCollection.cs
- ConfigurationStrings.cs
- FrameworkElementFactoryMarkupObject.cs
- EditingCommands.cs
- SerializationSectionGroup.cs
- PrincipalPermission.cs
- HiddenFieldDesigner.cs
- DateTimeStorage.cs
- IndentedWriter.cs
- ComponentEditorForm.cs
- DigestTraceRecordHelper.cs
- ColumnWidthChangingEvent.cs
- TypeExtensionConverter.cs
- CustomValidator.cs
- ExcludeFromCodeCoverageAttribute.cs
- ADRoleFactoryConfiguration.cs
- StatusBarItemAutomationPeer.cs
- XmlQueryTypeFactory.cs
- OdbcConnectionFactory.cs
- ForeignKeyConstraint.cs