david_sl
asked on
Calling Java method from XSL
I am using the following code in XSL to call Java method
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java_func="com.commo n.utils.SU tils"
extension-element-prefixes ="java_fun c" version="2.0">
....
<td width="20%">
<xsl:value-of select="java_func:getValFr omBundle($ fb_id_labe l)" />
</td>
this works fine.
Now I need to call another method which is in a different class. Please let me know how can I specify two classes and two prefixes in the XSL.
The resultant call will be something like this
<xsl:value-of select="java_func_1:my_new _method(pa ram)" />
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java_func="com.commo
extension-element-prefixes
....
<td width="20%">
<xsl:value-of select="java_func:getValFr
</td>
this works fine.
Now I need to call another method which is in a different class. Please let me know how can I specify two classes and two prefixes in the XSL.
The resultant call will be something like this
<xsl:value-of select="java_func_1:my_new
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.