From: Chris Marasti-G. <cg...@rj...> - 2006-03-02 12:21:36
|
=20 [...] > > Tiffany wrote: > >=20 > > > I'm trying to execute a xpath that has more than one path for : > > > > > > //somePath and //anotherPath and //finalPath [...] > I have a bunch of xml documents. I'm getting xpath=20 > statements (which I have no control over their context, I=20 > don't even know for the most part what they will look like). =20 > I need to apply that filter (xpath, be it one or n) on the=20 > document and return only the documents that fulfill all the=20 > criteria (xpath) that has been passed to me. The general=20 [...] I think I'm understanding this different from others (by their replies), so here's my 2c: <wrapper> { let $collection :=3D = collection("/db/wherever/you/stored/your/documents") for $doc in $collection/*[//somePath and //anotherPath and //finalPath] return <document>{$doc}</document> } </wrapper> |