[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Passing NodeSet into XSLT 1.0 in Java 7 via setPa

Subject: Re: Passing NodeSet into XSLT 1.0 in Java 7 via setParameter
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 17 Feb 2017 15:05:19 -0000
Re:  Passing NodeSet into XSLT 1.0 in Java 7 via  setPa
The best information I can find on what values Xalan accepts is:

The setParameter() method provides a value for a parameter that overrides any
value used in the stylesheet itself. The processor is responsible for
converting the Java object type passed to a reasonable XSLT equivalent. This
should work well enough for String, Integer, Double, and Boolean as well as
DOM types like Node and NodeList. However, I wouldnbt rely on it for
anything more complex like aFile or a  Frame.

which was written by one Elliotte Rusty Harold in 2003 (*). If you find
anything more informative, please let us know.

Michael Kay
Saxonica

(*) https://www.ibiblio.org/xml/slides/oop2003/xmlandjava/416.html


> On 17 Feb 2017, at 13:54, Elliotte Rusty Harold elharo@xxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Baseline:
>
> * Java 7
> * Bundled version of Xalan
> * java.xml.transformers.Transformer
> * DOM
>
> I want to create and pass a set of elements from Java into the model
> where the stylesheet can add them to my output.
>
> Is this possible? In particular, is there a type I can use from Java
> such as NodeIterator that this particular processor will recognize as
> a node-set and assign to a variable inside the stylesheet?
>
> Or should I simply do all the manipulation in DOM? (I'm trying to keep
> my dependencies to a minimum so I don't want to pull in Saxon, etc.)
>
> --
> Elliotte Rusty Harold
> elharo@xxxxxxxxxxx

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.