Passing parameters to saxon on windows 2000 system ?

K

klaus

Hello,

I want to pass a parameter to an xslt using saxon on a windoes 2000
system.
I'm using this command line in a batch file:

java -jar c:\programme\saxon\saxon8.jar -v -novw -o
...\html_files\output.html ..\xml_files\input.xml
...\xslt\xml2html.xsl language=EN

The problem is the last parmater for saxon "language=EN" this parameter
is split by (the dos box ?) to two paramters "langauge" and "EN" ang
the "=" has gone.

I checked this behavior using another batchfile just used to report the
paramters (echo %1 %2 %3 ...)

Of course saxon doesn't understand this paramter when it's split into
two.

How can a variable of an xslt be set by saxon using a command line on a
windows 2000 system (maybe it's also a problem on other version of
windows) ?

Regards

Klaus
 
G

George Bina

Hi Klaus,

You can specify a command line parameter that contains characters that
may split that in multiple parameters if you enclose it in quotes, so
try "language=EN" instead of language=EN.

Best Regards,
George
 
K

klaus

Hi George,

I tried to encolse the parameter in quotes, but I thougt that saxon
could not read the parameter then, because my variable wasn't defined
in the XSLT.

Now I found that I needed a <xsl:param name="variablename"/> statement
in the XSLT.
So passing the parameters in quotes "variablename=variablevalue" is the
correct solution.

Thank you for the hint

Regards
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,002
Messages
2,570,261
Members
46,858
Latest member
FlorrieTuf

Latest Threads

Top