This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Queries such as emptyorderdecl-2 exhibit a static typing error. The order specifier $i/text() is statically typed as a zero-or-more sequence. Other affected queries are emptyorderdecl-3, 10, 11, 14 15, 18, 19, 22, 24. (: Name: emptyorderdecl-2 :) (: Description: Evaluation of a prolog that specifies "empty greatest" with a se t of nodes (one empty) and sort them in ascending order :) declare default order empty greatest; (: insert-start :) declare variable $input-context1 external; (: insert-end :) for $i in (<a>1</a>,<a>4</a>,<a></a>,<a>7</a>) order by $i/text() ascending return $i
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!
Sorry, this still isn't correct. Note that <a></a> contains no text nodes, so exactly-one fails. You probably meant zero-or-one here. (: Name: emptyorderdecl-2 :) (: Description: Evaluation of a prolog that specifies "empty greatest" with a se t of nodes (one empty) and sort them in ascending order :) declare default order empty greatest; (: insert-start :) declare variable $input-context1 as document-node(element(*, xs:untyped)) extern al; (: insert-end :) for $i in (<a>1</a>,<a>4</a>,<a></a>,<a>7</a>) order by exactly-one($i/text()) ascending return $i
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 given within two weeks, status will be set to closed.
Thanks.