Subject:Native Java types and extension functions Author:Mark Spittle Date:18 May 2006 03:58 AM
I have written some extension functions in Java, one of these returns a Vector of a class defined within the extension function class.
I yould like to iterate over this vector in xsl, passing each member of the vector to a tremplate as a param. Then call other extension functions to get information out of the Java class.
Subject:Native Java types and extension functions Author:Mark Spittle Date:19 May 2006 03:55 AM
I saw that and assumed that java.util.Vector came under the "All Other Classes" category. I sort of expected that Xalan would have treated a "Non-XSLT Type" to be a java.lang.Object.
What I find strange is that Xalan seems to be quite happy accepting a Vector into a variable. However, when I try and pass that variable back into an extension function, it has become a NodeSet.
Maybe I'm just trying to use xslt beyond its scope. I have some XML which I need to enhance with data picked up from an external data source but selected according to rules embedded the xml data. XSLT Seemed like a good idea at the time.