The most likely explanation is that although you have Saxon-PE installed, you are still using it in HE mode. Presumably the [junit] in your messages indicates that you are loading Saxon using an API from a Java program. Chances are, it is loading up a "standard" Configuration rather than a ProfessionalConfiguration. For example, if using s9api, use "new Processor(true)". Without seeing the code, I can't be more specific than that.

Michael Kay
Saxonica

On 28/10/2010 13:34, Stéphane Vilboux wrote:
Hello,

Our Java application uses Saxon-B and we are planning to switch to Saxon-PE .  In order to test the compatibility of our application with the latter I switched libraries to Saxon-PE 9.2.1.2 .

Unfortunately when running our unit tests I get the following error :

[junit] Error on line 47 of some_file.xqy:
[junit]   XPST0017: Cannot find a matching 1-argument function named {http://saxon.sf.net/}path()


despite the fact that some_file.xqy has

declare namespace saxon="http://saxon.sf.net/";

at the beginning.

According to http://www.saxonica.com/documentation/extensions/functions.html the saxon:path function should be available, did I miss something ?

Best regards,
-- 
Stéphane Vilboux
Software developer
ETAI
------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help