XSLT Stylesheet Parameters

The global parameters of the XSLT stylesheet used in the transformation scenario are configured from the dialog available from the Parameters button of the Configure Transformation dialog:

Configure parameters dialog

The table presents all the parameters of the XSLT stylesheet, all imported and included stylesheets and all additional stylesheets with their current values. The following font type and color conventions are used:

If a parameter value was not edited then the table presents its default value. The bottom panel presents the default value of the parameter selected in the table, a description of the parameter if available and the system ID of the stylesheet that declares it.

For example setting the value of a parameter having a declared namespace like:

<xsl:param name="p:param" xmlns:p="namespace">default</xsl:param>

use the following expression in the Name column of the Parameters dialog:

{namespace}param

If the XPath column is checked, the parameter value is evaluated as an XPath expression before starting the XSLT transformation.

For example you can use expressions like:
doc('test.xml')//entry
//person[@atr='val']
Note:
  1. The doc function solves the argument relative to the XSL stylesheet location. You can use full paths or editor variables like ${cfdu} (current file directory) to specify other locations: doc('${cfdu}/test.xml')//*
  2. You cannot use XSLT Functions. Only XPath functions are allowed.

The following actions are available for managing parameters:

The editor variables displayed at the bottom of the dialog (${frameworks}, ${home}, ${cfd}, etc) can be used in the values of the parameters to make them independent of the location of the XSLT stylesheet or the XML document. To prompt for values at runtime, use the ask('user-message', param-type, 'default-value' ?) editor variable.

Related information
Editor Variables