Xml::Transform Property
Gets or sets the System.Xml.Xsl::XslTransform object that formats the XML document before it is written to the output stream.
Assembly: System.Web (in System.Web.dll)
[BrowsableAttribute(false)] public: property XslTransform^ Transform { XslTransform^ get (); void set (XslTransform^ value); }
<asp:Xml Transform="XslTransform" />
Property Value
Type: System.Xml.Xsl::XslTransformThe System.Xml.Xsl::XslTransform that formats the XML document before it is written to the output stream.
When using the Xml control to display an XML document, you can optionally specify an Extensible Stylesheet Language Transformation (XSLT) style sheet that formats the XML document, before it is written to the output stream in one of two ways. You can format the XML document with either a System.Xml.Xsl::XslTransform object or an XSL Transformation style sheet file. If no XSL Transform document is specified, the XML document is displayed using the default format. The Transform property is used to specify a System.Xml.Xsl::XslTransform object (representing an XSL Transform document) used to format the XML document before it is written to the output stream.
Note |
|---|
Using a System.Xml.Xsl::XslTransform object requires Full Trust permissions. |
| Topic | Location |
|---|---|
| How to: Transform XML Data in the XML Web Server Control | Building ASP .NET Web Applications |
| How to: Transform XML Data in the XML Web Server Control | Building ASP .NET Web Applications |
The following code example shows how to create XmlDocument and XslTransform objects from a sample XML file and an XSL Transformation style sheet. The objects are then used by the XML control to display the XML document.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note