W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2015

[Bug 29141] New: [XSLT30] fn:snapshot and fn:copy-of talk about node (singular), where the signature allows nodes

From: <bugzilla@jessica.w3.org>
Date: Wed, 23 Sep 2015 12:46:36 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29141-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 29141
           Summary: [XSLT30] fn:snapshot and fn:copy-of talk about node
                    (singular), where the signature allows nodes
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

In 18.3, the summary text of fn:copy-of says:

    "Returns a deep copy of the node supplied as the $node argument, or of 
    the context node if the argument is absent."

I think this should be "deep copy of the nodes" and "as the $nodes argument".

In 18.4, the summary text of fn:snapshot says:

    "Returns a copy of a node together with its ancestors and descendants and 
    their attributes and namespaces."

I think this should be "Returns a copy of a sequence of nodes".

The body of the text has:

    "The function returns a sequence of nodes in which each node is a 
    snapshot of the corresponding node in the input sequence supplied as the 
    argument $node. If the argument is an empty sequence, the function 
    returns an empty sequence."

This should be "supplied as the argument $nodes", according to the signature.

The function used to explain its workings has a return type of "node()?", this
should be "node()*":

    <xsl:function name="fn:snapshot" as="node()?" new-each-time="maybe">

should then become

    <xsl:function name="fn:snapshot" as="node()*" new-each-time="maybe">

The body of the function already allows a sequence of nodes to be returned.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 23 September 2015 12:46:38 UTC

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