[MarkLogic Dev General] choosing children node

Paul M pjmaip at yahoo.com
Tue Feb 5 05:46:14 PST 2008


let $n:= <doc>
<para>
<g:german>grussgot</g:german>
<english>hello</english>
 Mr Herrman
<g:german>wie gehts</g:german>

<english>how are you today</english>
We missed you at the meeting on Friday
<joke>Well, we missed the good bier that you always bring</joke>
</para>
</doc>

let $msg:=$n//para
return $msg

I only want either the english or the german version children of the para element. What is the easiest way to implement this? I only can envision recursively removing german child elements or english child elements. Is there another more efficient way?







      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20080205/9beeb64b/attachment.html


More information about the General mailing list