DataViewWebPart.Xsl property
Gets or sets the embedded Extensible Stylesheet Language Transformation (XSLT) that is used to transform the Web Part content if an XslLink is not supplied.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<WebPartStorageAttribute(Storage.None)> _
<BrowsableAttribute(False)> _
Public Property Xsl As String
Get
Set
'Usage
Dim instance As DataViewWebPart
Dim value As String
value = instance.Xsl
instance.Xsl = value
[WebPartStorageAttribute(Storage.None)]
[BrowsableAttribute(false)]
public string Xsl { get; set; }
Property value
Type: System.String
A System.Xml.XmlNode that contains the XSLT that is used to transform content for this Web Part.
Remarks
The Xsl property is read/write. The value of this property is stored in the database. Embedded XSL can transform XML content specified through either the Content or ContentLink properties if you specify ContentType as XML. You cannot specify encoding in embedded XSL, because the Web Part Page passes the XSL through a string. The encoding value is not processed. This property and XslLink are similar to the embedded Content and ContentLink properties. Web Part Pages first check whether XslLink has a value. If it does, the Web Part Page uses the results of that link and ignores the Xsl property. If XslLink is not defined or is inaccessible, the Web Part Page uses the contents of the Xsl property. If neither property is defined, or if XslLInk fails and this property has no value, the content is rendered without any transformation.