Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 6th, 2007, 12:49 AM
Authorized User
Join Date: Apr 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling Java function in XSL

My q is how to call a java function from within an xslt file?

This is what i have been trying..

When calling a java function from an XSL file:
<xsl:stylesheet version="1.0"
    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
Namespace 'xalan:com.mydomain.utils.ConversionUtils' does not contain any functions

Old July 6th, 2007, 07:50 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

Your question is very specific to the Xalan XSLT processor so I suggest you ask the question on a Xalan forum (go to www.apache.org)

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Java function from XSL jilly J2EE 0 July 6th, 2007 12:52 AM
Java script function is not calling in Mozilla mouli_sam ASP.NET 1.0 and 1.1 Professional 0 May 9th, 2006 01:44 AM
calling java function from xsl pandian XSLT 1 December 21st, 2005 12:59 PM
Calling a javascript while loading the xsl suresh_satyam Javascript How-To 0 January 22nd, 2005 03:01 PM
XSL calls java function - prob vetrikam XSLT 2 October 9th, 2003 10:33 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.