[xquery-talk] Fw: selecting fragments of xml document that contain certain paths in string variables

fatma helmy fatmahelmy2000 at yahoo.com
Tue Nov 7 05:07:26 PST 2006


----- Forwarded Message ----
From: fatma helmy <fatmahelmy2000 at yahoo.com>
To: talk at xquery.com
Sent: Monday, November 6, 2006 3:04:25 AM
Subject: selecting fragments of xml document that contain certain paths in string variables


Dear all
suppose i have this xml books.xml
<root>
<book> 
<author> <firstname>john </firstname> </author>
<price> 10</price>
</book>
<book>
<author> <firstname> mary</firstname> </author>
<price> 100 </price>
</book>
<book>
<price> 100 </price>
</book>
</root>

suppose i have variable $pth:= "book/author/firstname"
i need to restrict the choice to books that contain this $pth

something like that 


let $restrictedxml:= books.xml (containing $pth)





More information about the talk mailing list