FOR $a IN $cnt[ int(./bibno) < 1000]
return {$a}
the above is exactly one way to do this in XQuery.
Just use the XPath qualifier syntax.
Another way to express this is by way the
where clause:
FOR $a IN $cnt
where int($a/bibno) < 1000
return {$a}
Sven Eric
#Tamino#webMethods#API-Management