[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Java extension functions

Subject: RE: Java extension functions
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 25 Sep 2001 10:48:22 +0100
RE:  Java extension functions
The precise details of how you call Java extension functions vary a little
from one processor to another. Firstly Xalan uses xalan:script rather than
xsl:script to define the external function (though it also supports
short-cuts that deduce the method name directly from the namespace URI of
the function call). Secondly, Xalan's rules for selecting a method in the
identified class differ slightly from the XSLT 1.1 rules described in the
book: this is important with methods like max() where the class has several
methods with the same name.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Matthew L.
> Avizinis
> Sent: 24 September 2001 23:07
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Java extension functions
>
>
> I have attempted to call, just for the heck of it, the
> function in Michael
> Kay's book XSLT Programmer's Reference 2nd Edition on as
> described on page
> 583 using XalanJ.  It returns the message : For extension
> function, could
> not find method java.lang.Double.max([Expression
> Context,] #NUMBER).
> The function on page 133 returns the message: XSLT Error
> (javax.xml.transform.TransformerException): Instance method
> call to method
> new requires an Object instance as first argument
>
> Is this a classpath problem or something else?  I know Xalan
> supposedly
> supports Java.  Or is it that it doesn't implement the
> <xsl:script> element
> and uses the <xalan:script> element instead?
>
> thanks in advance,
>   Matthew L. Avizinis
> Gleim Publications, Inc.
>    4201 NW 95th Blvd.
>  Gainesville, FL 32606
> (352)-375-0772 ext. 101
>      www.gleim.com
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.