This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The test "typeswitch-in-xpath" appears in a test-set with dependency XQ10+, but the test itself can only be run in XP20+. It's impossible to meet both these requirements simultaneously, and so I think the test can never be run.
This test looks OK as it has the XP20+ dependency at the test case level.
I'm afraid I don't agree. We first test the condition at the test-set level, then the condition in the test-case. The condition at the test-set level should always be as permissive as that in the test-case. Since this is the ONLY case in which this occurs, I believe it to be a bug. As soon as this is fixed, I'll be ready to submit results.
I think there may be some cases where the author of a test has assumed that a dependency at test-case level masks or overrides a dependency of the same type at test-set level. The way the documentation is written, this isn't the case: the dependencies should be cumulative. So I think Tim is right, if XQ10 is required at test-set level and XQ20 is required at test-case level, then the dependencies for this test case can never be satisfied.
A quick fix would be to move this test out of prod/TypeswitchExpr.xml and into misc/CombinedErrorCodes.xml.
Ok. I will move the test.
Bug fixed and committed to cvs.
Thanks.
BTW, I've just removed the original version from TypeswitchExpr.xml.