XQuery Abstract Syntax Tree...
Added by Anonymous over 19 years ago
Legacy ID: #3123214 Legacy Poster: ali (cfsdevln)
Hi, I have looked at some of the XQuery usage in Saxon here: http://www.saxonica.com/documentation/using-xquery/embedding.html The usage I have seen, so far, is mostly focused on executing the queries. Is there an object in Saxon that would return an "Abstract Syntax Tree" of the compiled XQuery or some simmilar structure that represents the xquery in a parsed form? Thanks... Ali
Replies (1)
RE: XQuery Abstract Syntax Tree... - Added by Anonymous over 19 years ago
Legacy ID: #3123313 Legacy Poster: Michael Kay (mhkay)
Yes, the Expression object (which is wrapped in the XQueryExpression object) is in effect the root of an abstract syntax tree. However, it's not really designed for use by applications - what were you proposing to do with it? You can get a textual display of the tree using the display() method, which is invoked by the -e option on the XQuery command line.
Please register to reply