This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3834 - Static typing of "order by" expressions in use cases
Summary: Static typing of "order by" expressions in use cases
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.1
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 17:10 UTC by Nick Jones
Modified: 2008-01-21 17:45 UTC (History)
0 users

See Also:


Attachments

Description Nick Jones 2006-10-13 17:10:40 UTC
FS 4.8.4 states "the static semantics of a FLWORExpr expression with an OrderByClause is equivalent to the static semantics of an equivalent FLWORExpr in which the OrderByClause is replaced by a call to the gt comparison over the corresponding OrderSpec expression(s)".

Which I think means the following use cases should fail static type checking as they contains sequences on the lines indicated.


xmp-queries-results-q7
order by $b/title


xmp-queries-results-q12
order by $a/last, $a/first


rdb-queries-results-q2
order by $i/itemno


rdb-queries-results-q10
order by $highbid/itemno


rdb-queries-results-q13
rdb-queries-results-q16
order by $u/userid


rdb-queries-results-q16
let $descr := $i/description/text()
order by $descr
Comment 1 Nick Jones 2006-10-13 17:13:31 UTC
Last one should be:

rdb-queries-results-q18
let $descr := $i/description/text()
order by $descr
Comment 2 Carmelo Montanez 2006-12-14 18:37:22 UTC
I see, your point, but not sure how to tackle it.
Comment 3 Nick Jones 2006-12-15 13:26:18 UTC
Adding exactly-one(...) should work. I can't think of any more elegant solution which will type-check.
Comment 4 Frans Englich 2007-09-14 09:34:53 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED. Otherwise, reopen this report. If no feedback is returned within two weeks, status will be changed to CLOSED. Thanks for reporting!
Comment 5 Nick Jones 2007-10-02 10:41:01 UTC
Thanks. Most of them are fixed, but there are still problems with:

rdb-queries-results-q2:
order by $i/itemno


Also, there are the same problems (which I failed to include in my original report) for

rdb-queries-results-q1:
order by $i/itemno

similarly, while the problem reported in rdf-queries-results-q18, there is a similar problem in the line:
order by $u/name
Comment 6 Nick Jones 2008-01-21 17:45:17 UTC
Specific static typing tests have been added to CVS