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.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
property XslTransform^ Transform {
	XslTransform^ get ();
	void set (XslTransform^ value);
}
/** @property */
public XslTransform get_Transform ()

/** @property */
public void set_Transform (XslTransform value)

public function get Transform () : XslTransform

public function set Transform (value : XslTransform)

Not applicable.

Property Value

The 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.

NoteNote:

Using a System.Xml.Xsl.XslTransform object requires Full Trust permissions.

TopicLocation
How to: Transform XML Data in the XML Web Server ControlBuilding ASP .NET Web Applications
How to: Transform XML Data in the XML Web Server ControlBuilding 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.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: