I have now added this feature to both s9api on Java and the Saxon.Api on .NET. It will be in the next major release.
 

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay



From: वीरेन्द्र Ray [mailto:virendra.ray@gmail.com]
Sent: 22 March 2010 12:17
To: Saxon Mailing List
Subject: [saxon] Any one working with Saxon .Net api- help to executeselected xquery function from xq file

Hi,

I need to execute selected function from xq files which contains a number of xquery functions.
Is this possible using saxon.api?


Processor processor = new Processor();
        XQueryCompiler compiler = processor.NewXQueryCompiler();
        XQueryExecutable exp = compiler.Compile(<Filename>/<Function name>);
        XQueryEvaluator eval = exp.Load();
        XdmValue value = eval.Evaluate();

Regards,
Virendra