Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| Search | Today's Posts | Mark Forums Read
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
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 in XSL

Hello!
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:
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

 
Old July 6th, 2007, 07:50 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

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
http://www.saxonica.com/
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.