This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: parameter with elements


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]