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 3166 - fn-iri-to-uri-18 has wrong baseline
Summary: fn-iri-to-uri-18 has wrong baseline
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.0
Hardware: Other Linux
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-30 21:15 UTC by Frans Englich
Modified: 2006-05-01 19:50 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2006-04-30 21:15:41 UTC
The query for test case fn-iri-to-uri-18 reads:

fn:iri-to-uri("example&example")

That is, the function is passed "example&example", because "&" is decoded   since it's part of an XQuery xs:string literal.

Further, since "&" are supposed to be encoded, I conclude the correct baseline is "example%26example". However, the baseline reads:

example%26amp%3Bexample

As I see it, this would have been a correct baseline if the test read fn:iri-to-uri("example&example")

Perhaps changing the query to the above is better, since it's a bit more complex.


Regards,
Frans
Comment 1 Carmelo Montanez 2006-05-01 14:52:41 UTC
Frans:

You are correct.  I like your example better, so I change the
query to your suggested one.  Please close the bug if in agreement.

Thanks,
Carmelo
Comment 2 Frans Englich 2006-05-01 19:50:32 UTC
Yes, the resolution is fine. Nice work.


Frans