- From: <bugzilla@farnsworth.w3.org>
- Date: Tue, 20 May 2008 21:27:19 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5703
Summary: extra space in the result of functx-fn-namespace-uri-
for-prefix-all
Product: XML Query Test Suite
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: XML Query Test Suite
AssignedTo: frans.englich@telia.com
ReportedBy: andrew.eisenberg@us.ibm.com
QAContact: public-qt-comments@w3.org
The expected result of this test case is " http://datypic.com/pre
http://datypic.com/unpre http://datypic.com/pre".
The leading space in this result would be justified if
namespace-uri-for-prefix('', $in-xml) returned a zero-length string ($in-xml
has no default namespace).
Section 11.2.5, fn:namespace-uri-for-prefix, in F&O, says:
"If $prefix is the zero-length string or the empty sequence, it returns the
namespace URI of the default (unnamed) namespace. Otherwise, it returns the
empty sequence."
I think that one could interpret this as requiring that an empty-sequence be
returned, rather than a zero-length string. This interpretation would remove
the leading space from the expected result.
Am I missing something? Should this be brought to the WGs?
Received on Tuesday, 20 May 2008 21:27:56 UTC