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

RE: Calling a Java extension from XSLT using Saxon B

Subject: RE: Calling a Java extension from XSLT using Saxon B
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 24 Jun 2009 08:10:18 +0100
RE:  Calling a Java extension from XSLT using Saxon B
> 1. You have to declare this namespace xmlns:file="java.io.File"

Actually the recommended form of namespace URI for Saxon extension functions
is java:java.io.File. It's true that (as Bob duCharme pointed out) Saxon
recognizes almost anything ending with the class name, for compatibility
with other XSLT processors. However, one consequence of this is rather poor
diagnostics: it was fine for 1.0 where the only functions other than system
functions were Java extension functions, but works less well in 2.0 where
functions can come from a much wider variety of sources. In XQuery, only the
"java:" form is recognized, and this will become the default for Saxon's
XSLT processor in 9.2 as well - other forms will be recognized only if you
request it in the configuration.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

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.