[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Xalan and command-line parameters

Subject: Xalan and command-line parameters
From: Dan <dan@xxxxxxxxxxxxxxxx>
Date: Tue, 14 Jun 2005 18:05:26 +0100
xalan 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.