This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
passing a variable to a stylesheet when using a batch file
- To: "Xsl-List (E-mail)" <xsl-list at mulberrytech dot com>
- Subject: passing a variable to a stylesheet when using a batch file
- From: Linda van den Brink <lvdbrink at baan dot nl>
- Date: Thu, 13 Apr 2000 10:41:10 +0200
- Reply-To: xsl-list at mulberrytech dot com
Hi all,
Has anyone tried (successfully?) to pass a variable to a stylesheet, when
the XSLT processor is called from a DOS batch file?
I tried to do the following:
D:\PROJECTS\psa\xml>psa2web.bat date=20000413
With this line in my batch file:
xt dummy.xml newpage.xsl ..\site\software\pages\various\new.htm %1
And get the following error message:
usage: java com.jclark.xsl.sax.Driver source stylesheet [result]
[param=value]...
I tried saxon as well, which complains of a bad param-value pair.
Is there a way?
Linda
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list