[xquery-talk] reproducing nested structure

Fourny Ghislain gfourny at inf.ethz.ch
Sun Mar 13 19:56:20 PST 2011


Also, it needs to be adapted if the root is a document node (in my test, the document was in the query, so the root was an element node).

Something like an additional case in the typeswitch expression:

  case document-node() return document { $filtered-children }

Kind regards,

> Note that it makes the simplifying assumption that only elements are filtered, and non-element nodes are kept.

More information about the talk mailing list