xsl-list
[Top] [All Lists]

RE: [xsl] Calling a Java extension from XSLT using Saxon B

2009-06-24 03:10:51
 
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 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>