Re: [xsl] saxon9 passing values

Subject: Re: [xsl] saxon9 passing values
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Mon, 10 Aug 2009 14:52:00 +0200
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.

Michael Ludwig

Current Thread