I didnt see you preceeding response on the mailing list, so I repost.
with last version available at this date.
Lets define a kind of nop operator:
define function x(){<a x="0"><a x="1"/><a x="2"/></a>}
define function s($x){<a x="{$x/string(@x)}">{for $n in $x/a return <a
x="{$n/string(@x)}"/>}</a>}
s(t()) returns
<a x="0"><a x="1" /><a x="2" /></a>
and
s(s(t())) returns
<a x="0"><a x="1" /><a x="2" /></a>
and s(s(s(t())))/a/@x returns
x="1" x="2"
it workz! (it doesnt before...)
I can now perform successive transformations on xml trees.
Thanks !