This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
XSLT parameters are strings. They can't be arrays. So how are you passing this array?
Joined: May 07, 2003
Originally posted by Paul Clapham: XSLT parameters are strings. They can't be arrays. So how are you passing this array?
well, i am actually using xalan with the java ns as xmlns:java="java", so i can set java object as parameter such as resourcebundles as follows
and use them in xsl as follows,
so by default, i took that i can pass in parameter as a string array...and indeed yes.
The problem is that string array doesn't have methods, such as getString in ResourceBundle, to access it ....
Of course, i can write my own java extension to process the array, just as i did to format the date & time, but it's not preferred... i was just asking is there a xslt way to do this with just the java ns?
Thank you very much! [ December 12, 2006: Message edited by: Yi Meng ]