Functions That Test the Cardinality of Sequences

one-or-more((1,2,3,4,5))

from within a Java application, in order to extract the result from the result sequence, one would have to use this code:

for (Iterator iter = rs.iterator(); iter.hasNext();) {

 Object item = iter.next();
 int n = ((XSInteger)item).intvalue();
 print(n + " ");

} println("");

in order to get the result of ‘1 2 3 4 5’