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 5817 - CVS: functx-functx-path-to-node-with-pos-2
Summary: CVS: functx-functx-path-to-node-with-pos-2
Status: CLOSED INVALID
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: 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: 2008-06-27 15:33 UTC by Tim Mills
Modified: 2008-11-17 09:06 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2008-06-27 15:33:22 UTC
Could the comparison type of tests:

functx-functx-path-to-node-with-pos-2

functx-functx-path-to-node-with-pos-all

functx-functx-escape-for-regex-2

functx-functx-escape-for-regex-all

please be changed from

compare="Fragment"

to

compare="Text"

Each test returns a string.
Comment 1 Frans Englich 2008-07-23 10:39:43 UTC
Is it possible that we don't? It's a messy change to do(these tests are generated), and technically the results are XML fragments, and wrapping with an element should work; although I suspect the Text method would be slightly more convenient. Feel free to elaborate on how you see it.
Comment 2 Frans Englich 2008-07-23 10:45:10 UTC
See also http://www.w3.org/XML/Query/test-suite/Guidelines for Running the XML Query Test Suite.html , which reads:

Text: Same comparison as "XML fragment".
Comment 3 Tim Mills 2008-07-28 08:18:32 UTC
It's not the comparison itself which is causing the problem, but rather the reading of the result.

For some reason, the Microsoft XmlReader gives an error while reading the results for these as XML fragments.  If the comparison mode is Text, we read the result without using an XmlReader and everything works.
Comment 4 David Carlisle 2008-07-28 08:45:54 UTC
> If the comparison mode is Text, we read
> the result without using an XmlReader and everything works.

text comparison was "clarified" as meaning the same as xml fragment early on as
several of the standard test result files that were marked as text comparison were in fact subject to xml encoding, &lt; for < etc, so in both cases you need to wrap in an element and parse as xml.

see bug #1863, bug #2402, and other similar ones of that vintage:-)

David
Comment 5 Tim Mills 2008-07-28 12:24:39 UTC
Our problem seems to be with Microsoft's .NET XML parser, which is able to parse:

\[a\]

but not:

\\[ab\\]

I've reported the problem to Microsoft.  It's bug ID 358196 if any kind reader would like to vote for it!

I think we'll have to hack around it in our XQTS runner for the moment, but would be grateful if the catalog could be changed.
Comment 6 Tim Mills 2008-11-17 09:06:55 UTC
Microsoft say they'll fix this bug in .NET 4.0.