|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Xalan and command-line parameters
I'm having trouble passing command-line parameters to a stylesheet, but
I've searched your archives and I can't find anything wrong with it, so
maybe someone can point out the problem.
I invoke the stylesheet like this:
xalan -IN chapters.xml -XSL param.xsl -OUT foo.txt \
-PARAM myParameter the-value
------ stylesheet -----
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:param name="myParameter"/>
<xsl:template match="/">
<text>
You set the parameter to:
</text>
<xsl:value-of select="$myParameter"/>
</xsl:template>
</xsl:stylesheet>
--
People say I am ruthless. I am not ruthless. And if I find
the man who is calling me ruthless, I shall destroy him.
- Robert Kenedy, campaigning for the U.S. Senate in 1964
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








