[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Calling a Java extension from XSLT using Saxon B
Subject: RE: [xsl] Calling a Java extension from XSLT using Saxon B From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 24 Jun 2009 08:10:18 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Calling a Java extension , Ganesh Babu N | Thread | [xsl] Getting a <TableRow> where <C, Casper Voortman |
Re: [xsl] Calling a Java extension , Ganesh Babu N | Date | [xsl] Getting a <TableRow> where <C, Casper Voortman |
Month |