No, sorry, I don't think it is possible to do this using the Saxon.Api interface.


Michael Kay

From: वीरेन्द्र Ray []
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


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();