Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
| Search | Today's Posts | Mark Forums Read
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE 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:52 AM
Authorized User
Points: 209, Level: 4
Points: 209, Level: 4 Points: 209, Level: 4 Points: 209, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: , , .
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling Java function from XSL

Hi !

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"
    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.base64Deco deString($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



Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Java function in XSL jilly XML 1 July 6th, 2007 07:50 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.