|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] XQuery and id()/idref(); Controlling the children of nodes in the result sequenceMichael Kay mike at saxonica.comWed Apr 23 13:38:12 PDT 2008
> So the question is, is it possible to recursively traverse > the descendants of the a:data node and select only those > element nodes which > refer to the same a:span element? Well, the answer is yes - though at this point I'm afraid I start wishing the code was written in XSLT rather than XQuery: XSLT makes recursive traversal of a tree so much easier. But you can do it: write a recursive function that you apply to a node, and which calls itself to process the children of the node. Michael Kay http://www.saxonica.com/
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






