|
Property "Call definition" <calldef> |
|
|
This property of XSL template element lets you make a custom function definition to call the xsl template you have defined. When calling an XSL template you have to write long and unreadable definitions. Using this property you can define a custom compile-time function and make the calling of the XSL template simpler like in the following example. If you define a custom compile-time function once in "Call definition" property as follows
Instead of calling the template like this Number : $xsl(<xsl:call-template name="ToLowerCase"><xsl:with-param name="value" select="Code"/></xsl:call-template>) You can just say Number : %tolower(Code) See Compile Time Instruction <cti:define>.
|