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 14342 - [QT3TS] functx-fn-namespace-uri-for-prefix-all
Summary: [QT3TS] functx-fn-namespace-uri-for-prefix-all
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 11:00 UTC by Tim Mills
Modified: 2012-05-31 12:23 UTC (History)
3 users (show)

See Also:


Attachments

Description Tim Mills 2011-09-30 11:00:17 UTC
The expected result of this test in XQTS was:

http://datypic.com/pre http://datypic.com/unpre http://datypic.com/pre

but in QT3 is:

|http://datypic.com/pre|http://datypic.com/unpre|http://datypic.com/pre

The latter, I believe, is wrong.  See Bug 11590.
Comment 1 O'Neil Delpratt 2012-05-18 09:36:48 UTC
This bug was fixed on the 2011-10-07 by myself.
Comment 2 Tim Mills 2012-05-18 14:33:38 UTC
The expected result does not match the one in XQTS.

In QT3 it is:

         <assert-string-value> http://datypic.com/pre http://datypic.com/unpre http://datypic.com/pre</assert-string-value>


To match XQTS it would be:

         <assert-string-value>http://datypic.com/pre http://datypic.com/unpre http://datypic.com/pre</assert-string-value>
Comment 3 O'Neil Delpratt 2012-05-22 16:56:50 UTC
I will check this one.
Comment 4 Michael Kay 2012-05-22 19:23:09 UTC
I agree, the result is wrong.

It hinges on the first function call:

namespace-uri-for-prefix('', $in-xml)

The spec says:

If $prefix is the zero-length string or the empty sequence, then if $element has a default namespace (that is, a namespace node with no name), the function returns the namespace URI of the default namespace. If $element has no default namespace, the function returns the empty sequence.

The discussion on bug 11590 confirmed that the expected result here was an empty sequence, and therefore the expected result should not have the leading space. (There were many oscillations before we reached that conclusion, and it's quite likely that a change was made to the XQTS result after we did the conversion.)
Comment 5 O'Neil Delpratt 2012-05-23 08:21:31 UTC
Bug fix: Removed space in the test result.
Comment 6 Tim Mills 2012-05-31 12:23:05 UTC
Confirmed fixed.  Thanks.