- From: <bugzilla@wiggum.w3.org>
- Date: Sun, 31 Jul 2005 15:37:53 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1827
Summary: Range expression: "1 to1" specified to evaluate to "(1,
1)"
Product: XPath / XQuery / XSLT
Version: Last Call drafts
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: XPath
AssignedTo: chamberl@almaden.ibm.com
ReportedBy: frans.englich@telia.com
QAContact: public-qt-comments@w3.org
Hello,
The description of the Range expression reads(3.3.1):
"[...] Otherwise, the result is a sequence containing the two integer operands
and every integer between the two operands, in increasing order."
According to my interpretation, the expression "1 to 1" should hence evaluate
to the sequence "(1, 1)", since that is the two integer operands and every
integer between the two operands(which is none).
However, one of the examples shows that with two identical operands the result
should be a singleton value identical to the operands; "This example constructs
a sequence of length one containing the single integer 10. // 10 to 10"
I think the pararaph describing the range expressions contradicts the example,
and that it should be changed wrt. to the scenario when the two operands are
identical.
Cheers,
Frans
Received on Sunday, 31 July 2005 15:38:04 UTC