Saxon-HE hasn't supported those kind of dynamically-loaded reflexive functions since 9.1.  You could either use Saxon-B 9.1, purchase Saxon-PE or greater, or write an "integrated extension function"  in Java (or compatible language) for Saxon to implement the function you want.
Integrated extension functions are documented here:
http://www.saxonica.com/documentation/extensibility/integratedfunctions.xml
Also, there's examples floating around.
-Leif 

On Tue, Nov 30, 2010 at 4:33 PM, Brad Cox <bradjcox@gmail.com> wrote:
I'm having a helluva time making extension functions work. Hope you can help.

Context is... Netbeans project with Saxon HE 9.3.0.1 sources alongside
the enclosed test case, so I KNOW LdapQuery is on the classpath.
Verified that repeatedly. This is the latest (of many) workarounds to
the absence of ANY stable maven repositories for compiled jars which
I'd really prefer to use.

I have this at the top of an xqy file:
declare namespace ldap="java:com.technica.pbac.util.LdapQuery";
declare namespace date="java:java.util.Date";

And this a bit further down. The first line was pasted directly from
the instructions. The second is the one I'm really trying to make
work. But if date won't work, nothing will.
let $d := date:new()
let $r := ldap:new("ldap://...omitted...")

Looking for function {java:java.util.Date}new
Trying net.sf.saxon.functions.SystemFunctionLibrary
Trying net.sf.saxon.functions.VendorFunctionLibrary
Trying net.sf.saxon.functions.ConstructorFunctionLibrary
Trying net.sf.saxon.query.XQueryFunctionLibrary
Trying net.sf.saxon.query.ImportedFunctionLibrary
Trying net.sf.saxon.functions.IntegratedFunctionLibrary
Trying net.sf.saxon.query.UnboundFunctionLibrary
Looking for function {java:com.technica.pbac.util.LdapQuery}new
Trying net.sf.saxon.functions.SystemFunctionLibrary
Trying net.sf.saxon.functions.VendorFunctionLibrary
Trying net.sf.saxon.functions.ConstructorFunctionLibrary
Trying net.sf.saxon.query.XQueryFunctionLibrary
Trying net.sf.saxon.query.ImportedFunctionLibrary
Trying net.sf.saxon.functions.IntegratedFunctionLibrary
Trying net.sf.saxon.query.UnboundFunctionLibrary
Looking for function {java:com.technica.pbac.util.LdapQuery}get
Trying net.sf.saxon.functions.SystemFunctionLibrary
Trying net.sf.saxon.functions.VendorFunctionLibrary
Trying net.sf.saxon.functions.ConstructorFunctionLibrary
Trying net.sf.saxon.query.XQueryFunctionLibrary
Trying net.sf.saxon.query.ImportedFunctionLibrary
Trying net.sf.saxon.functions.IntegratedFunctionLibrary
Trying net.sf.saxon.query.UnboundFunctionLibrary
Error on line 13 of ContextBuilderFleet.xqy:
 XPST0017: Cannot find a matching 0-argument function named
{java:java.util.Date}new()

For completeness, here's how I''m running it

public class XqueryTest
{
       @Test
       public void test1() throws Exception
       {
               String[] args = new String[]
               {
                       "-TJ",
                       "...full path omitted... ContextBuilderFleet.xqy",
               };
               net.sf.saxon.Query.main(args);
       }
       public static void main(String[] args) throws Exception
       {
               XqueryTest t = new XqueryTest();
               t.test1();
       }
}
So... do extension functions work in Saxon-HE, or is it me?

Please help!

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help