I got sidetracked from looking at a string concat/token solution but managed to figure out how to pass a Java object into the XSLT and access it. Here it is hoping it'll help someone in the future...
In Java, create your Java object and set it as a parameter into the...
I do have another idea which works using tokens.
In Java, I determine the items which I want rendered/processed. I concatenate those item names into one string, delimited by a token, say '|'. If the '|' is used in any item name, I'll have to use a '||' and so on until I find a safe token. I...
Hi Tom,
No, I'm not constrained to use an ArrayList; I could have just as easily chosen Vector. My thinking is that I need to specify one or more items to process/render (at runtime) and I assumed it would be possible to pass in an array/list of those string items and then in the XSLT loop...
I'm using Apache FOP, embedded in a Java desktop application, to create PDFs from a data XML file and an XSLT file.
Say the data XML file is a list of items of the form
<items>
<item>apple</item>
<item>apples</item>
<item>orange</item>
<item>water melon</item>
...
</items>
I want to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.