Re: [xsl] saxon9 passing values

Subject: Re: [xsl] saxon9 passing values
From: Andreas Peter <info@xxxxxxxxxx>
Date: Tue, 11 Aug 2009 21:47:43 +0200
Hi Michael,

thanks for the hint. It works :-)


Am 10.08.2009 14:52 Uhr, schrieb Michael Ludwig:
minimag schrieb:

I tried to change the <xsl:value-of select="1"/> to <xsl:value-of
select="0"/> using an xslt processor. Is this possible using saxon or
should I use an other approach?

It is possible using Saxon (or any other processor), *but* you should use another approach. Have an xsl:param at the top-level (as Martin suggested, not as you wrote it), and then, instead of hardcoding the value, write:

<xsl:value-of select="$number.chapter"/>

If you invoke the saxon9.jar (or saxon9he.jar) without any parameters,
you'll get a command-line usage explanation, including parameters.

Current Thread