$xsl() Function

Top  Previous  Next

With $xsl() function we can embed native XSL codes in the properties.

Example:

The salary is: $xsl(<xsl:call-template name="format-currency"><xsl:with-param name="amount" select="/salary/amount"/></xsl:call-template>)

To simplify the usage of $xsl() functions within properties we can define custom functions in a dummy element.

Custom Compile Time Function Definition

 

 <cti:define name="fc">

   <xsl:call-template name="format-currency">

     <xsl:with-param name="amount" select="/salary/amount"/>

   </xsl:call-template>

 </cti:define>

 

Usage:

The salary is: %fc()

 

See <cti:define> compile time instruction.