I just noticed today that XSL Extension seems accepting a maximum of three (3) parameters. My XSL runs smoothly until I make a method that has 4 parameters. I don't know if this is really the real behaviour. I haven't consulted google yet.

We all know that to consume an XSL variable with other XSL tag we just prefix it with dollar ($). But how about passing the variable to HTML tags? The answer: just enclosed it with curly braces ( {} ).

 

 <xsl:variable name="someVar" select="'some value'"/>

 

<xsl:value-of select="$someVar" /> 

 

<div id="{$someVar}"> 

some others...  

</div>