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

RE: [xsl] parameter with elements


Subject: RE: [xsl] parameter with elements
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 25 Oct 2001 16:34:35 +0100

> How can I pass an Element to a stylesheet:
>
> saxon test.xml test.xsl neu="<item>...</item>"
>
> but there comes in &lt;item&gt;....&lt;item&gt;
>
> what is the trick?

You can't do this from the command line.

>From the Java API, you can construct a tree (it must be a Saxon tree) and
pass a Node as the value of a parameter to the setParameter() call. But
parameters passed from the command line will always have data type String.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread