Hi,
To explain my problem, I will show two queries of XQuery:
declare namespace tf=‘http://namespaces.softwareag.com/tamino/TaminoFunction’
(for $Person in input()/Person
where (tf:containsText($Person/Name ,‘for’))
return $Person/Name)
[position() > 0 and position() <= 1000]
→ this query shows only the first 1000 names.
declare namespace tf=‘http://namespaces.softwareag.com/tamino/TaminoFunction’
count(for $Person in input()/Person where (tf:containsText($Person/Name ,‘for’)) return $Person/Name)
→ this query shows 2500 rows like result.
I would like to do only one query where I can have the number of total results (2500 results) and the first 1000 Names.
Is someone know if it is possible to do this in the same query with Xquery?
Thank you very much for your help!
C