[Bug 25443] New: [F+O 3.1] string() applied to a sequence

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 25443] New: [F+O 3.1] string() applied to a sequence

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25443

            Bug ID: 25443
           Summary: [F+O 3.1] string() applied to a sequence
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath 3.1
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

In the current 3.1 draft it is proposed that string() when applied to a
sequence should do a string-join(). I don't recall the precise logic for this
but it arose from some use case involving arrays.

Whatever the merits, we should note the incompatibility with XPath 1.0 which is
still very widely used and will probably remain so: in XPath 1.0, string()
applied to a sequence (set) of nodes outputs the string-value of the first node
in the sequence.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Reply | Threaded
Open this post in threaded view
|

[Bug 25443] [F+O 3.1] string() applied to a sequence

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25443

Michael Kay <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Michael Kay <[hidden email]> ---
The WG was persuaded that the incompatibility with XPath 1.0 was undesirable,
and decided that string() should revert to its 3.0 specification, that is, it
should not do an implicit string-join() over a sequence.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Reply | Threaded
Open this post in threaded view
|

[Bug 25443] [F+O 3.1] string() applied to a sequence

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25443

Michael Kay <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #2 from Michael Kay <[hidden email]> ---
In reviewing whether to close this, I spotted that a couple of examples had not
been changed as a result of this decision, and that the Note was now
misleading. I have made the required changes.

--
You are receiving this mail because:
You are the QA Contact for the bug.