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 4219 - why is K2-NameTest-60 an expected-error?
Summary: why is K2-NameTest-60 an expected-error?
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Linux
: 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: 2007-01-15 12:40 UTC by Per Bothner
Modified: 2007-01-16 19:06 UTC (History)
0 users

See Also:


Attachments

Description Per Bothner 2007-01-15 12:40:01 UTC
K2-NameTest-60 is:
declare variable $input := <e/>;
for $PI as processing-instruction() in $input//processing-instruction() return $PI
I'm not seeing where the error is supposed to come from.
Doesn't $input//processing-instruction() evaluate to an empty sequence.
Then each item (i.e. one of them) are cast to processing-instruction().
It seems the "loop" should run zero times and produce the empty sequence.
This is without static typing, but I'm don't know why there should be an error with static typing either.
Comment 1 Frans Englich 2007-01-15 17:30:54 UTC
An attempted fix has been committed to CVS, and should be part of
XQTS_current.zip. Feel free to verify that the fix is acceptable, and if so,
change status to CLOSED. If the attempted fix is not acceptable, reopen this
report.

If no opinion about this resolution is expressed within two weeks, it will be
closed.


Probably, the reason to why I thought it to be an error was that I expected a cardinality check to be applied by 'as processing-instruction()', but it is correct that cardinalities for range variables does nothing(as decided in 3305).
Comment 2 Per Bothner 2007-01-16 19:06:46 UTC
Seems to work now.  Thanks.