W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2011

[Bug 11590] Correct the expected result of test functx-fn-namespace-uri-for-prefix-all

From: <bugzilla@jessica.w3.org>
Date: Mon, 10 Jan 2011 12:17:33 +0000
To: public-qt-comments@w3.org
Message-Id: <E1PcGgn-00077F-H5@jessica.w3.org>

Oliver Hallam <oliver@cbcl.co.uk> changed:

           What    |Removed                     |Added
             Status|CLOSED                      |REOPENED
                 CC|                            |oliver@cbcl.co.uk
         Resolution|FIXED                       |

--- Comment #4 from Oliver Hallam <oliver@cbcl.co.uk> 2011-01-10 12:17:32 UTC ---
I disagree with the original commenter, the initial space in the result should
be there, and is necessary; the test is now broken.

The first call to namespace-uri-for-prefix in the test takes the empty string
as the first argument.  The specification for the function says:

If $prefix is the zero-length string or the empty sequence, it returns the
namespace URI of the default (unnamed) namespace.

In this case, the default namespace is the empty string.

Thus the test returns the empty xs:anyURI followed by three more xs:anyURI
These are seperated with spaces when the result is serialized.  Hence the
result requires a space at the start.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 10 January 2011 12:17:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:33 UTC