
Xml.TransformSource Property
Gets or sets the path to an Extensible Stylesheet Language Transformation (XSLT) style sheet that formats the XML document before it is written to the output stream.
[Visual Basic] Public Property TransformSource As String [C#] public string TransformSource {get; set;} [C++] public: __property String* get_TransformSource(); public: __property void set_TransformSource(String*); [JScript] public function get TransformSource() : String; public function set TransformSource(String);
Property Value
The path to an XSL Transformation style sheet that formats the XML document before it is written to the output stream.
Remarks
When using the Xml control to display an XML document, you can optionally specify an XSL Transformation style sheet that formats the XML document before it is written to the output stream in one of two ways. You can either format the XML document with a System.Xml.Xsl.XslTransform object or with an XSL Transformation style sheet file. If no XSL Transformation style sheet is specified, the XML document is displayed using the default format. The TransformSource property is used to specify the path to an XSL Transformation style sheet file (representing an XSL Transformation style sheet) used to format the XML document before it is written to the output stream. You can use a relative or an absolute path. A relative path relates the location of the file to the location of the Web Forms page or user control, without specifying a complete path on the server. The path is relative to the location of the Web page. This makes it easier to move the entire site to another directory on the server without updating the path to the file in code. An absolute path provides the complete path, so moving the site to another directory requires updating the code.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
Xml Class | Xml Members | System.Web.UI.WebControls Namespace | Transform | Document | DocumentContent | DocumentSource