Subject: RE: RE: % in xslt printing as ?
From: cknell@xxxxxxxxxx
Date: Fri, 23 Sep 2005 07:14:14 -0400
|
I confirm Michael Kay's remark. If your parameter's name (as defined by the name attribute of the xsl:param element) is "Date", then your command line should read:
msxsl.exe testme.xml myfix.xsl Date="2005-01-01" -o out.html
--
Charles Knell
cknell@xxxxxxxxxx - email
-----Original Message-----
From: stuart arnold <stuart.arnold@xxxxxxxxxxx>
Sent: Thu, 22 Sep 2005 18:59:16 -0400
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: % in xslt printing as ?
I treied that, I guess I'm missing something.
I'm calling at:
msxsl.exe testme.xml myfix.xsl param="2005-01-01" -o out.html
In the XSL, what should I have, I mean, how does it know that that param
goes with what, eg
<xsl:param name="Date" />
Should I have more on the command line or the XSL?
Thanks for the reply and any help.
-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: Thursday, September 22, 2005 6:38 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: % in xslt printing as ?
>
> I'm trying to pass a variable to my xsl processor as well, but I don't
> know how to recive it in the XSL. What xsl command do I use?
Use <xsl:param name="nnnn"/> as a top-level element (a child of
xsl:stylesheet). Then refer to the parameter just like a variable, as
$nnnn. The way you actually supply the parameter a value depends on the
processor API you are using.
Michael Kay
http://www.saxonica.com/
|