Welcome to Dream.In.Code
Become a Java Expert!

Join 149,515 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,345 people online right now. Registration is fast and FREE... Join Now!




Calling java functions in XSLT

 
Reply to this topicStart new topic

Calling java functions in XSLT

greatdragon
5 Jul, 2007 - 09:47 PM
Post #1

New D.I.C Head
*

Joined: 8 Nov, 2006
Posts: 23


My Contributions
Hi everyone!

When calling a java function from an XSL file:
CODE

<xsl:stylesheet version="1.0"
    xmlns:java="http://xml.apache.org/xslt/java"
    xmlns:fn="http://www.my.com/xslt"    
    exclude-result-prefixes="java fn">
. . .
<xsl:variable name="embeddedpic"
select="formData/instance/EmployeePicture" />
<xsl:variable name="pic" select="fn:com.my.utils.ConversionUtils.base64DecodeString($embeddedpic)"/>

I am getting this exception in calling the above java function from my XSLT
CODE
Namespace 'xalan:com.mydomain.utils.ConversionUtils' does not contain any functions


Thanks

This post has been edited by greatdragon: 5 Jul, 2007 - 09:48 PM
User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: Calling Java Functions In XSLT
14 Jul, 2007 - 04:58 PM
Post #2

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,010



Thanked: 7 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
Hi, I found a link that you may be interested.
THIS
There are examples there, maybe you'll find the useful.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 08:05PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month