[xquery-talk] Re: Attribute node whose parent is a document node

Wolfgang Hoschek whoschek at lbl.gov
Thu Jul 7 15:09:54 PDT 2005

> Sorry, Im really stuck here. *who* has no parent ? The node in the  
> for statement ($town) ?

The issue can be simplified to these two cases:

let $a := <county name="Devon"/>
return $a/@name (: W3C spec says top-level attributes can't be  
serialized :)

let $a := <county name="Devon"/>
return $a       (: fine :)

(Both cases will work fine with the -wrap option).

More information about the talk mailing list