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 3601 - K-ReplaceFunc-6, K-ReplaceFunc-8 and K-ReplaceFunc-9 don't require the replacement pattern to be evaluated
Summary: K-ReplaceFunc-6, K-ReplaceFunc-8 and K-ReplaceFunc-9 don't require the replac...
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-15 15:42 UTC by Martin Probst
Modified: 2006-08-16 12:43 UTC (History)
0 users

See Also:


Attachments

Description Martin Probst 2006-08-15 15:42:28 UTC
K-ReplaceFunc-6, K-ReplaceFunc-8, K-ReplaceFunc-9 expect errors because of illegal replacement patterns:
> replace("input", "pattern", "thisIsInvalid\ ")

However the implementation does not need to evaluate the replacement pattern to evaluate the query because the input doesn't match the pattern, so it's free not to give an error but rather return the empty sequence.
Comment 1 Frans Englich 2006-08-15 19:38:39 UTC
A fix is attempted in CVS, feel free to change status to CLOSED if it is
satisfactory.

XQTS_current.zip is updated. At this point I do not know whether this fix will
make it into XQTS 1.0.

The queries were changed to make the patterns match.

Thanks for the report.


Frans
Comment 2 Martin Probst 2006-08-16 12:43:11 UTC
It's fixed.