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 3356 - fn:id tests are PSVI based
Summary: fn:id tests are PSVI based
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-18 20:58 UTC by Marc Van Cappellen
Modified: 2006-12-11 21:01 UTC (History)
1 user (show)

See Also:


Attachments

Description Marc Van Cappellen 2006-06-18 20:58:12 UTC
The following tests were DTD based in previous versions of XQTS. The document being queried is now based on an xsd.
As such InfoSet-based implementations behave different and return an empty sequence for the following tests:
fn-id-12.xq
fn-id-13.xq
fn-id-15.xq
fn-id-16.xq
fn-id-17.xq
fn-id-18.xq
fn-id-20.xq
fn-id-21.xq
fn-id-23.xq
fn-id-5.xq
fn-id-7.xq
fn-id-8.xq
fn-id-9.xq

Thanks,
Marc
Comment 1 Michael Kay 2006-06-18 21:18:37 UTC
Further, if the processor succeeds in locating the IDs, the results are no longer those documented. The source file has acquired two extra namespaces, which are in scope for the selected elements, and which should therefore appear in the result files.
Comment 2 Carmelo Montanez 2006-06-20 17:18:22 UTC
Michael/Mark:

Thanks for your comments.  Provided results with expected namespaces and
alternate results for info-set vbased implementations.

Thanks,
Carmelo
Comment 3 Tom Brosens 2006-07-06 12:52:20 UTC
Issue verified and indeed fixed. Closing.

Comment 4 Michael Kay 2006-10-31 10:01:02 UTC
It seems the result files (in the 1.0.1 distribution) still have incorrect namespaces. The source file id.xml declares the namespace 

 xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"

which should have been copied to the result, while the result file declares

 xmlns:xs = "http://www.w3.org/2001/XMLSchema"

which comes from nowhere.

I'm slightly embarrassed to be reporting this bug after claiming to have passed the tests. In fact, my pass was qualified with the comment "matches after stripping whitespace nodes". It appears that the process I was using to strip whitespace nodes had the side-effect of stripping unused namespaces, and it was this that caused the apparent match in the results.
Comment 5 Michael Kay 2006-11-17 14:15:17 UTC
The bug (see comment #4) can be fixed by changing all occurrences of

xmlns:xs = "http://www.w3.org/2001/XMLSchema"

to

xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"

in the following test results (in SchemaImport/MiscFunctions)

fn-id-5,7,8,9,12,13,15,16,17,18,19,20,21,23
fn-idref-5,7,8,9,15,16,17,18,19,20,21,23

In addition the "alternative" results fn-idrefalt-7 and fn-idrefalt-8 should be deleted. They are wrong (missing required namespaces).
Comment 6 Andrew Eisenberg 2006-11-20 18:15:39 UTC
I've changed the xs namespace declaration to xsi in the expected results that you indicated in comment 5.

Carmelo, please take a look at the "alternative" results that Mike mentions.
Comment 7 Carmelo Montanez 2006-11-20 18:23:23 UTC
Mike:

Thanks for reporting.  I will fix it as soon as I gey my CVS back in order.

Thanks,
Carmelo
Comment 8 Carmelo Montanez 2006-12-11 21:01:25 UTC
Mike/Andrew:

Thanks for the comments and node.  I removed the extra references to 
fn-idrefalt-7 and fn-idrefalt-8, though, I am not sure if that solves the problem entirely.

Thanks,
Carmelo