W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2005

[Bug 2339] fn:string-join problem

From: <bugzilla@wiggum.w3.org>
Date: Wed, 12 Oct 2005 12:31:00 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1EPfl6-0006aQ-DT@wiggum.w3.org>

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

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