This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: parameter with elements
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] parameter with elements
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 25 Oct 2001 16:34:35 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> How can I pass an Element to a stylesheet:
>
> saxon test.xml test.xsl neu="<item>...</item>"
>
> but there comes in <item>....<item>
>
> 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