[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|