- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 12 Oct 2005 12:31:00 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2339
Summary: fn:string-join problem
Product: XPath / XQuery / XSLT
Version: Last Call drafts
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Functions and Operators
AssignedTo: ashok.malhotra@oracle.com
ReportedBy: jvh@reddot.de
QAContact: public-qt-comments@w3.org
>From my point of view, by (hopefully) cautiously reading the spec,
the last example given for string-join is just wrong:
fn:string-join(for $n in ancestor-or-self::* return name($n), '/')
shall return "/doc/chap/section"
and not "doc/chap/section"
Why? I cannot see any reason why
fn:string-join(('', 'a', 'b'), '+') shall return "a+b". It shall be "+a+b"!
If this is not a bug in the spec, it would be nice to put an example into
the spec and clarify the reason.
P.S.: the leading and trailing blank for the first two examples may confuse as
well.
Received on Wednesday, 12 October 2005 12:31:37 UTC