W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2006

[Bug 3305] Cardinality +/* on range variables

From: <bugzilla@wiggum.w3.org>
Date: Sun, 04 Jun 2006 22:18:26 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Fn0vS-00084s-Si@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3305





------- Comment #4 from mike@saxonica.com  2006-06-04 22:18 -------
I think the spec is clear that you can write

for $i as xs:integer* in (1 to 5) return ...

and there seems to be no justification for Saxon rejecting this as an error.
It's clear that the sequenceType applies to the value bound to the variable.
This means that the occurrence indicator is redundant but not wrong.

I don't think there is any good reason for the spec to allow an occurrence
indicator here, however. It would be a straightforward change to the syntax to
allow only an ItemType rather than a SequenceType, and I would personally be in
favour of making this change.

Michael Kay
Received on Sunday, 4 June 2006 22:18:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:12 UTC