I cannot seem to get the -param command-line option of xalan to work.
command-line
Code:
java org.apache.xalan.xslt.Process
-in a.xml -xsl a.xsl -out a.html -param
[color red]a[/color]
xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<A></A>
xsl
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<h1>[<xsl:value-of select="
[color red]$a [/color]
Code:
</xsl:template>
</xsl:stylesheet>
error
Code:
could not find the variable with name of
[color red]a[/color]