XSLT Newbie Help !!
Posted: Wed Jul 04, 2007 2:12 pm
Greetings everyone! 
I am trying to render an xml-embedded image through XSLT. (pls if you have an example code for that it would be great help!
)
I have the java function which would return a file source on receiving the xml embedded base-64 image string.
The code preview is as follows:
I am getting this exception when calling the above java function from my XSLT
Thanks in advance for info !
Regards

I am trying to render an xml-embedded image through XSLT. (pls if you have an example code for that it would be great help!

I have the java function which would return a file source on receiving the xml embedded base-64 image string.
The code preview is as follows:
Code: Select all
<xsl:stylesheet version="1.0"
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:fn="http://www.mydomain.com/xslt"
exclude-result-prefixes="java fn">
. . .
<xsl:variable name="embeddedpic"
select="formData/instance/EmployeePicture" />
<xsl:variable name="pic" select="fn:com.mydomain.utils.ConversionUtils.base64DecodeString($embeddedpic)"/>

Code: Select all
(XalanXPathException: The function number 'http://xml.apache.org/xslt/java:com.my.utils.ConversionUtils.base64DecodeString' is not available.)
Regards