[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Dump name and value of all input parameters to an output file


Subject: Re: [xsl] Dump name and value of all input parameters to an output file
From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Sep 2015 11:17:05 -0000

> I was asking for a way to not having to to call them by name,
> again, one by one, in the template that generates the file.

it comes to the same thing. If you declare then as individual named parameters
you can only access them by name.

At least from the commandline. Rather than having to split a string a
cleaner interface would
be to declare the parameter to take a sequence but you can't set the
sequence from the commandline
only from java or similar api (I think).

You could of course put the parameters in a document
<params>
<param name="FOO" value="2"/>
....
</params>

then you can pass that as a document parameter on the commandline and
just iterate through
$params/params/param
in the usual way without having to list all the possible values.

David


Current Thread