[xquery-talk] Parse XQuery for Predicates

Ghislain Fourny gfourny at inf.ethz.ch
Tue May 24 07:16:25 PDT 2011

Hi Sri,

XQuery also exists as XQueryX, which is in XML format (it is kind of an XML representation of the program's abstract syntax tree).


If you can convert your program to XQueryX and treat it as an XML document, then you can use... XQuery to navigate to all the predicates it contains. Something simple like:


might be enough, but of course the possibilities are only limited by Turing-completeness.

Also, you might need to do the conversion back to the XQuery syntax.

Does it make sense?

Kind regards,

More information about the talk mailing list