[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|