[xquery-talk] Query to return nested xml tags
asn.padmapriya at gmail.com
Fri Dec 3 22:07:03 PST 2004
Firstly thanks for all your prompt responses to my queries. They were
My question might sound repetitive, but the problem is that I'm using
the GALAX api for xpath and xquery. Unfortunately, it doesn't accept
some of the standard xquery syntax (not even 'doc', it uses 'document'
instead!!!!). So, in order to obtain the result nodes of an xquery in
XML format : that is:
I'm using the following , rather 'roundabout' way of doing so. Please
note that the api doesn't seem to recognize functions either (!!!), so
recursive calls cannot be made.
I have written the following query, but when I try to execute it :
" let $open := fn:string-join(for $p in $n/ancestor-or-self::* return
fn:concat(\"<\",fn:name($p),\">\"), \"\") let $app := \"\" let $close
:= string-join(for $p in $n/ancestor-or-self::* let $app :=
fn:concat(\"</\",fn:name($p),\">\",$app) return $app,\"\") return
It still gives me :
Even on changing the order of the $app and other arguments in the
second concat, it doesn't seem to work!
Could someone please help me?
More information about the talk