<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29150</bug_id>
          
          <creation_ts>2015-09-24 09:16:00 +0000</creation_ts>
          <short_desc>[XSLT30] Editorialities / typos</short_desc>
          <delta_ts>2015-10-29 12:42:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>123307</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-09-24 09:16:00 +0000</bug_when>
    <thetext>A small list of some (ir)relevant nitpicks:

1) In section 12, first Note, first para, it ends with:

the format-numberFO30 function may be more suitable: see Section 4.7.2 fn:format-number FO30.

which is essentially a double reference, the format-number function is already hyperlinked and then we point to it again.

2) 18.1.2 Streamability examples, we write:

4. The argument to count is a RelativePathExpr that takes the form of a motionless pattern[...]

We don&apos;t have the &quot;if an expression can be rewritten as a motionless pattern&quot; rule anymore. We now have rules on Axis Steps and Path Expressions. It is still streamable, but for other reasons.

3) In section 21 Maps, we write:

TODO: replace the error codes defined in this section by the error codes used in XPath 3.1.

I think this has meanwhile been done (?), I don&apos;t see error codes other than the ones that apply to XSLT only.

4) In section Abstract, we write:

TODO: describe the relationship to XPath 3.1 and related specs.

I think this was done meanwhile, I see the relevant sections.

5) In section L Changes Since LCWD

Under first item, also a &quot;TODO&quot;: &quot;TODO: add the streamability rules for new expressions and functions&quot;, but I think this one is still open (I scanned for fn:transform, but didn&apos;t find it).

6) In section B.1 Schema for the XML Representation of JSON, we write:

    &lt;xs:simpleType name=&quot;numberType&quot;&gt;
        &lt;xs:restriction base=&quot;xs:double&quot;&gt;
            &lt;!-- exclude positive and negative infinity, and NaN --&gt;
            &lt;xs:minExclusive value=&quot;-INF&quot;/&gt;
            &lt;xs:maxExclusive value=&quot;INF&quot;/&gt;
        &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;

In the comment we say we exclude NaN, but we don&apos;t do so in the schema. Was this intended to be excluded?

7) In section 2.3.3 Apply-Templates Invocation, we write:

The initial match selection. An API that chooses to maintain compatibility with previous versions of this specification should allow a singleton node to be provided, which is then used in two ways: the node itself acts as the initial match selection, and the document node of the containing document acts as the global context item.

However, a singleton node does not need to be rooted at a document node. Should we be a bit more precise here (even though it is merely a suggestion to implementors)?

8) In section 24.1 Creating Final Result Trees, we write in the fourth bullet:

The corresponding serialization parameter is not set (is &quot;absent&quot;). it is not possible [...]

typo: it --&gt; It</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123328</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-09-28 09:17:39 +0000</bug_when>
    <thetext>A small list of some (ir)relevant nitpicks:

1) In section 12, first Note, first para, it ends with: the format-numberFO30 function may be more suitable: see Section 4.7.2 fn:format-number FO30.

* Fixed. Also in the immediately following para of the note, corrected &quot;format-number&quot; to &quot;format-integer&quot;.

2) 18.1.2 Streamability examples, we write:

4. The argument to count is a RelativePathExpr that takes the form of a motionless pattern[...]

We don&apos;t have the &quot;if an expression can be rewritten as a motionless pattern&quot; rule anymore. We now have rules on Axis Steps and Path Expressions. It is still streamable, but for other reasons.

* I propose to replace

(4). The argument to count is a RelativePathExpr that takes the form of a motionless pattern and appears in an inspection context (the argument to count()); the sweep of the RelativePathExpr and therefore of the entire body of the xsl:stream instruction is therefore consuming.

with

(4). The argument to count is a RelativePathExpr. Under the rules in 19.8.8.7 _Streamability of Path Expressions_, this expression is striding and consuming, which makes the call to count grounded and consuming.
(5). Therefore the entire body of the xsl:stream instruction is grounded and consuming.

3) In section 21 Maps, we write: TODO: replace the error codes defined in this section by the error codes used in XPath 3.1.

* Deleted the TODO.

4) In section Abstract, we write: TODO: describe the relationship to XPath 3.1 and related specs. I think this was done meanwhile, I see the relevant sections.

* The Abstract itself still needs updating to reflect these changes. I&apos;ve now made these changes.

5) In section L Changes Since LCWD. Under first item, also a &quot;TODO&quot;: &quot;TODO: add the streamability rules for new expressions and functions&quot;, but I think this one is still open (I scanned for fn:transform, but didn&apos;t find it).

* This is covered adequately by bug #28937.

6) In section B.1 Schema for the XML Representation of JSON, we write:

    &lt;xs:simpleType name=&quot;numberType&quot;&gt;
        &lt;xs:restriction base=&quot;xs:double&quot;&gt;
            &lt;!-- exclude positive and negative infinity, and NaN --&gt;
            &lt;xs:minExclusive value=&quot;-INF&quot;/&gt;
            &lt;xs:maxExclusive value=&quot;INF&quot;/&gt;
        &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;

In the comment we say we exclude NaN, but we don&apos;t do so in the schema. Was this intended to be excluded?

* We include NaN implicitly. NaN &lt; INF is false, so specifying a maxExclusive of INF automatically excludes NaN.

7) In section 2.3.3 Apply-Templates Invocation, we write: &quot;The initial match selection. An API that chooses to maintain compatibility ... and the document node of the containing document acts as the global context item.&quot; However, a singleton node does not need to be rooted at a document node. Should we be a bit more precise here (even though it is merely a suggestion to implementors)?

* Yes, should replace &quot;the document node of the containing document&quot; with &quot;the root node of the containing tree&quot;. Fixed.

8) In section 24.1 Creating Final Result Trees, we write in the fourth bullet: The corresponding serialization parameter is not set (is &quot;absent&quot;). it is not possible [...] typo: it --&gt; It

* I think the reference is to 25.1 &quot;Creating Secondary Results&quot;, and the relevant text has already been corrected in the current draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123335</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-09-28 11:50:55 +0000</bug_when>
    <thetext>&gt; * I think the reference is to 25.1 &quot;Creating Secondary Results&quot;, and the 
&gt; relevant text has already been corrected in the current draft.

Indeed, 25.1 and indeed, it is corrected :).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123654</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-12 08:53:21 +0000</bug_when>
    <thetext>The changes have been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>