by Euo
28. January 2009 15:00
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>