"where $A/$matches" is not wrong, but given that $A is a singleton, it's trivially the same as "where $matches". I think you can still avoid repeating the condition even when the "or" becomes an "and". <Results> { for $A in doc("data.xml")/ASet/A let $matchesB := $A/B[. = ("red","yellow")] let $matchesC := $A/C[. = ("chair","table")] where ($matchesB and $matchesC) return <A> {$A/@*, $matchesB, $matchesC } </A> }</Results>Received on Monday, 21 March 2005 15:33:55 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:20 GMT