Hi guys,
I'm having trouble passing parameters to xalan. When I do the following:
Code:
<xsl:param name="language" select="otherwise" />
<xsl:template match="if">
<xsl:choose>
<xsl:when test="$language">
<xsl:value-of select="$language" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="otherwise" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
It actually outputs my param value instead of the node value. I have to following source XML:
Code:
<if>
<cpp>int</cpp>
<java>Int</java>
<otherwise>int</otherwise>
</if>
I pass my parameter to xalan as:
Code:
-param language cpp
Any help much appreciated.
Thanks!