There are many examples of function calls in the use-cases, which are distributed in the "use-cases" directory. These include calls on both system-defined and user-defined functions. See for example use-cases/tree/q1.xq.
If you are having problems calling functions, show us your code and we can tell you where you have gone wrong.
Michael Kay
Saxonica Limited

Was this advice useful? If you benefit from the help given, especially on a commercial project, you can help us to continue to provide this service by making a donation. See 

From: [] On Behalf Of
Sent: 11 August 2004 00:47
Subject: [saxon] invoking functions in XQuery

Hi all,

Can someone give a particular sample of invoking XQuery functions in Saxon?

For instance, how can embed this function in queries?  fn:lower-case($arg as xs:string?) as xs:string

Moreover, how can include the customised functions in Saxon?  please show some samples of invoking the functions in queries.

There are loads of XPath functions working in Saxon, what about XQuery? how different's a way of invoking?

W. Jirapanthong

Heart disease is Britains biggest killer. Join the British Heart Foundations Big Red Fightback: