-
Notifications
You must be signed in to change notification settings - Fork 25
Configuring the XSL Transformation Visualizer Settings
Page Editors can configure the Active Visualizer field located in the Display and Cache section of the Reports Settings page to use a XSL Transformation Visualizer which uses an XSL Transformation file and XML produced by the Data Source to produce HTML that is used to display the report. The XML produced by the Data Source has the following format:
<DocumentElement>
<QueryResults>
<Column1Name>Column1Value;/Column1Name><
Column2Name>Column2Value;/Column2Name>
...</QueryResults><QueryResults>...
Same as above, for Row 2 ...
</QueryResults>
Use the Show Xml Source command to check the exact XML returned by the Data Source configuration. For example, to reproduce the results displayed in the "Configuring the XSL Transformation Visualizer Settings on the Active Visualizer" tutorial, the following XSL would be used:
<xsl:stylesheetversion="1.0" xmlns:xsl="http://www.w3.org/-1999/XSL/Transform">
<xsl:outputmethod="xml" indent="yes"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran-sitional.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<xsl":template match="/DocumentElement/QueryResults">
<h1>Module =<xsl:value-ofselect="ModuleID"/></h1>
<p>Title: <xsl:value-ofselect="ModuleTitle"/></p>
</xsl:template>
</xsl:stylesheet>
Similarly to the HTML Template Visualizer, all of the data retrieved from the Data Source will be displayed in this Visualizer. Users must modify the Data Source configuration to restrict the amount of data displayed.
Here's how to configure the XSL Transformation Visualizer settings for the Active Visualizer in the Reports module:
- Go to a Reports module.
- Select
Manage >
Settings from the module actions menu.
- Go to the Display and Caching Settings section of the Report Settings tab.
- At Active Visualizer, select XSL Transformation Visualizer.
- At Transform File, select the Link Type (URL or a File on Your Site).
- At Transform File, select the XSLT file to use for generating the display. Failure to set this option to a file may result in an error.
- Click the Update button.