<?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>26750</bug_id>
          
          <creation_ts>2014-09-08 00:39:50 +0000</creation_ts>
          <short_desc>[XSLT30] Editorial: Summary of typos, link issues, errors in code examples etc</short_desc>
          <delta_ts>2014-09-12 10:32:54 +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>P5</priority>
          <bug_severity>trivial</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>111149</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-09-08 00:39:50 +0000</bug_when>
    <thetext>This issue lists some of the editorial things I found during read-throughs of sections. I doublechecked with the latest internal Draft of Sept 5, 2014.

All through the document, consistency:
- implementer(s) (16x) vs implementor(s) (3x)
- data type(s) (4x) vs datatype(s) (34x)
- subexpression(s) (7x) vs sub-expression(s) (6x)
- can not (2x) vs cannot (88x)
- lookahead (1x) vs look-ahead (5x)
- non-deterministic (1x) vs nondeterministic (7x) (also in XP30)
- etc (6x) vs etc. (3x) (missing dot)
- rfc2119 vs RFC2119 (all other RFCs are with capitals)
- &quot;Content: (sequence-constructor)&quot; (6x) vs &quot;Content: sequence-constructor&quot; (58x)
- &quot;Javascript&quot; (1x) vs &quot;JavaScript&quot; (2x)
- &quot;arabic&quot; (1x) vs &quot;Arabic&quot; (1x)

Spelling choices (I think the preferred spelling should be different)
- dereferencable (1x) --&gt; dereferenceable (based on spelling of referenceable)
- zeroeth (1x) --&gt; zeroth
- judgement (5x) --&gt; judgment

Spelling errors/typos:
- everywhere &quot;a x...&quot; --&gt; &quot;an x...&quot; (10x)
- everywhere &quot;the the &quot; --&gt; &quot;the &quot; (5x) (except 19.8.4.5)
- everywhere &quot;a EQName&quot; --&gt; &quot;an ...&quot; (7x)
- everywhere &quot;a expanded QName&quot; --&gt; &quot;an...&quot; (4x)
- everywhere &quot;decribed&quot; --&gt; &quot;described&quot; (2x)
- everywhere &quot;compenenents&quot; --&gt; &quot;components&quot; (2x)
- everywhere &quot;styelsheet&quot; --&gt; &quot;stylesheet&quot; (2x)
- everywhere &quot;feaure&quot; (3x) --&gt; &quot;feature&quot;

- 1.1, 2nd para and 17.1, 2nd list, 2.d: &quot;of of&quot; --&gt; &quot;of&quot;
- 2.3.6, base output URI definition, rogue space fore closing &quot;]&quot;: &quot;relative to this base URI. ]&quot;
- 2.10, 2nd list, 4th bullet, &quot;classical example&quot; --&gt; &quot;classic example&quot;
- 3.6.3, &quot;an symbolic reference&quot;, &quot;an&quot; --&gt; &quot;a&quot;
- 3.6.5, 5th para &quot;An xsl:namespace-alias declarations&quot; --&gt; &quot;An xsl:namespace-alias declaration&quot; (singular)
- 3.6.3.2, 2nd para, &quot;exposed visiblity&quot; --&gt; &quot;exposed visibility&quot;
- 3.11 missing closing paren in the last para of last Note
- 3.13, 1st Note, &quot;or if is&quot; --&gt; &quot;or if it is&quot;
- 5.8.2, &quot;an value template&quot;, &quot;an&quot; --&gt; &quot;a&quot;
- 6.5, item #3, &quot;a IntersectExceptExprP&quot;, &quot;a&quot; --&gt; &quot;an&quot;
- 6.6.1, in table, last cell, &quot;the value private.A&quot; --&gt; &quot;...private. A&quot; (space)
- 6.7.3, last Note, 1st para, missing closing quote: &apos;the traditional select=&quot;node() | @*&apos;
- 10, definition of &quot;invocation constructs&quot;, &quot;The following construct are&quot;  --&gt; &quot;constructs&quot; (plural)
- same in C, Glossary
- 10.2.4, first bullet, &quot;an use-attribute-sets&quot; --&gt; &quot;a [...]&quot;
- 13.1.3 5th para &quot;imlementation&quot; --&gt; &quot;implementation&quot;
- 14.1, 12th para, starting with &quot;f the group-adjacent&quot; --&gt; &quot;If the group-adjacent&quot;
- 15.6, last para, &quot;parmameters&quot; --&gt; &quot;parameters&quot;
- 18.1.1, last para of Note, &quot;analyis&quot; --&gt; &quot;analysis&quot;
- 18.2.1, 2nd para after Note, &quot;exeecution&quot; --&gt; &quot;execution&quot;
- 18.2.2 last para, &quot;a a rule&quot; --&gt; &quot;a rule&quot;
- 18.2.8, 3rd example, &quot;thenstack&quot; --&gt; &quot;the stack&quot;
- 18.4, under Rules, 2nd para &quot;seequence&quot; --&gt; &quot;sequence&quot;
- 19, 7th para, &quot;instructon&quot; --&gt; &quot;instruction&quot;
- 19.4, 2nd bullet point, &quot;(or other item). or&quot; --&gt; &quot;(or other item), or&quot;
- 19.4.1, 1st example, list #3, &quot;instrunction&quot; --&gt; &quot;instruction&quot;
- 19.4.1, 2nd example, &quot;as a inspection&quot; --&gt; &quot;as inspection&quot;
- 19.8.1, item 1.c.i, &quot;adjusted sweep&quot; --&gt; &quot;adjusted sweep S&apos;&quot; (as elsewhere in this section)
- 19.8.2, &quot;an choice operand group&quot;, &quot;an&quot; --&gt; &quot;a&quot;
- 19.8.4.5 #3 in list, &quot;[...]the the current mode[...]&quot; --&gt; &quot;that the&quot;
- 19.8.4.10 &quot;expresssions&quot; --&gt; &quot;expressions&quot;
- 19.8.15, 1st Note, 2nd para &quot;aread&quot; --&gt; &quot;ahead&quot;
- 19.9, 3rd example, #2.c.ii, &quot;establised&quot; --&gt; &quot;established&quot;
- 19.9, 3rd example, #6, &quot;containined&quot; --&gt; &quot;contained&quot;
- 21.1.4, missing space in &quot;[ERR XPTY0004] XP30occurs&quot; (before &quot;occurs&quot;)
- 23.1.1, last para under Notes, &quot;anr&quot; --&gt; &quot;and&quot;
- 23.2.2, under Rules, 1st para, &quot;the it is&quot; --&gt; &quot;then it is&quot;
- C Glossary, item &quot;potentially consuming&quot;, ends with colon &quot;:&quot;, but nothing after it
- L, item #110, &quot;cose&quot; --&gt; &quot;case&quot;
- L, item #136, &quot;practise&quot; --&gt; &quot;practice&quot;
- M, item #6, &quot;practise&quot; --&gt; &quot;practice&quot;
- XTSE3280 (2x) &quot;has has&quot; --&gt; &quot;has&quot;



Coding errors/typos (potentially not just editorial):
- 3.5, &quot;[xsl:]default-validaion&quot; --&gt; &quot;[xsl:]default-validation&quot;
- 5.7.2, first ex., newline just before &quot;&gt;&quot; (can be left on same line as instruction)
- 6.7.x: some examples use mode=&quot;M&quot;, some don&apos;t, sometimes it is mixed for examples in one section. I think the mode=&quot;M&quot; can be removed for all &quot;equivalency&quot; coding examples.
- 6.7.1, built-in template rule, 2nd example, is not legal syntax: match=&quot;text()|@*|xs:anyAtomicType&quot;
- 6.7.1, para before green example block, contains function items, this is not allowed:
    &lt;xsl:template 
       match=&quot;processing-instruction()|comment()|namespace-node()|function(*)&quot; 
       mode=&quot;M&quot;/&gt;
- 8.3.2 &quot;FAOR0001&quot; --&gt; &quot;FOAR0001&quot;
- 18.2.8 last example, &quot;pap:put&quot; --&gt; &quot;map:put&quot;
- 19.8.2, example &quot;if ($gratis) then 0 else price else&quot;, remove last &quot;else&quot;


Layout / font-choice / links etc errors:
- 3.14.2, 2nd coding example, wrong indentation 2nd line.
- 6.5, item #4, PredicateList is not linked (other productions in this section are)
- 6.7.1, last example, just before the green block of &quot;Example: Using a Build-in Template Rule&quot;, the grey block is connected with it. A paragraph (whiteline) seems appropriate here.
- 10, definition of &quot;invocation constructs&quot;, the link to &quot;stylesheet functions&quot; goes haywire (duplicated)
- same in C Glossary
- 15.4, 2nd para, &quot;current-merge-group()&quot; is not hyperlinked, other fu&apos;s are
- 19.2, table under VarRef[55], 2nd col, &quot;$V&quot; should be in Courier
- 19.8.8.14 first para &quot;If the context posture for a cll on the last[...]&quot;, link should point to &quot;context posture&quot;, not &quot;posture&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111167</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-09-08 12:13:32 +0000</bug_when>
    <thetext>All through the document, consistency:

- implementer(s) (16x) vs implementor(s) (3x)
Switched to -er though I personally prefer -or.

- data type(s) (4x) vs datatype(s) (34x)
Switched to datatype in line with XSD part 2

- subexpression(s) (7x) vs sub-expression(s) (6x)
Switched to subexpression

- can not (2x) vs cannot (88x)
Switched to cannot

- lookahead (1x) vs look-ahead (5x)
Switched to look-ahead

- non-deterministic (1x) vs nondeterministic (7x) (also in XP30)
Switched to nondeterministic

- etc (6x) vs etc. (3x) (missing dot)
SWitched to etc.

- rfc2119 vs RFC2119 (all other RFCs are with capitals)
Hopefully fixed (if I understand the machinery right...)

- &quot;Content: (sequence-constructor)&quot; (6x) vs &quot;Content: sequence-constructor&quot; (58x)
Fixed.

- &quot;Javascript&quot; (1x) vs &quot;JavaScript&quot; (2x)
Fixed

- &quot;arabic&quot; (1x) vs &quot;Arabic&quot; (1x)
I think the distinction is correct

Spelling choices (I think the preferred spelling should be different)
- dereferencable (1x) --&gt; dereferenceable (based on spelling of referenceable)
Fixed

- zeroeth (1x) --&gt; zeroth
I prefer zeroeth but OED has zeroth, so OK.

- judgement (5x) --&gt; judgment
Allthough Judgment is the american spelling, and therefore w3c-preferred (or prefered), all 5 usages refer to the XPath use of the term, which is spelt judgement. Anyway, I prefer judgement.

Spelling errors/typos:
- everywhere &quot;a x...&quot; --&gt; &quot;an x...&quot; (10x)
fixed

- everywhere &quot;the the &quot; --&gt; &quot;the &quot; (5x) (except 19.8.4.5)
fixed

- everywhere &quot;a EQName&quot; --&gt; &quot;an ...&quot; (7x)
fixed

- everywhere &quot;a expanded QName&quot; --&gt; &quot;an...&quot; (4x)
fixed

- everywhere &quot;decribed&quot; --&gt; &quot;described&quot; (2x)
fixed

- everywhere &quot;compenenents&quot; --&gt; &quot;components&quot; (2x)
not found

- everywhere &quot;styelsheet&quot; --&gt; &quot;stylesheet&quot; (2x)
fixed

- everywhere &quot;feaure&quot; (3x) --&gt; &quot;feature&quot;
fixed

- 1.1, 2nd para and 17.1, 2nd list, 2.d: &quot;of of&quot; --&gt; &quot;of&quot;
fixed

- 2.3.6, base output URI definition, rogue space fore closing &quot;]&quot;: &quot;relative to this base URI. ]&quot;
fixed

- 2.10, 2nd list, 4th bullet, &quot;classical example&quot; --&gt; &quot;classic example&quot;
if you insist

- 3.6.3, &quot;an symbolic reference&quot;, &quot;an&quot; --&gt; &quot;a&quot;
fixed

- 3.6.5, 5th para &quot;An xsl:namespace-alias declarations&quot; --&gt; &quot;An xsl:namespace-alias declaration&quot; (singular)
fixed

- 3.6.3.2, 2nd para, &quot;exposed visiblity&quot; --&gt; &quot;exposed visibility&quot;
fixed

- 3.11 missing closing paren in the last para of last Note
not found

- 3.13, 1st Note, &quot;or if is&quot; --&gt; &quot;or if it is&quot;
fixed

- 5.8.2, &quot;an value template&quot;, &quot;an&quot; --&gt; &quot;a&quot;
fixed

- 6.5, item #3, &quot;a IntersectExceptExprP&quot;, &quot;a&quot; --&gt; &quot;an&quot;
fixed

- 6.6.1, in table, last cell, &quot;the value private.A&quot; --&gt; &quot;...private. A&quot; (space)
browser rendering problem?

- 6.7.3, last Note, 1st para, missing closing quote: &apos;the traditional select=&quot;node() | @*&apos;
fixed

- 10, definition of &quot;invocation constructs&quot;, &quot;The following construct are&quot;  --&gt; &quot;constructs&quot; (plural)
already fixed
- same in C, Glossary

- 10.2.4, first bullet, &quot;an use-attribute-sets&quot; --&gt; &quot;a [...]&quot;
fixed

- 13.1.3 5th para &quot;imlementation&quot; --&gt; &quot;implementation&quot;
fixed

- 14.1, 12th para, starting with &quot;f the group-adjacent&quot; --&gt; &quot;If the group-adjacent&quot;
fixed

- 15.6, last para, &quot;parmameters&quot; --&gt; &quot;parameters&quot;
fixed

- 18.1.1, last para of Note, &quot;analyis&quot; --&gt; &quot;analysis&quot;
fixed

- 18.2.1, 2nd para after Note, &quot;exeecution&quot; --&gt; &quot;execution&quot;
fixed

- 18.2.2 last para, &quot;a a rule&quot; --&gt; &quot;a rule&quot;
fixed

- 18.2.8, 3rd example, &quot;thenstack&quot; --&gt; &quot;the stack&quot;
fixed

- 18.4, under Rules, 2nd para &quot;seequence&quot; --&gt; &quot;sequence&quot;
fixed

- 19, 7th para, &quot;instructon&quot; --&gt; &quot;instruction&quot;
fixed

- 19.4, 2nd bullet point, &quot;(or other item). or&quot; --&gt; &quot;(or other item), or&quot;
fixed

- 19.4.1, 1st example, list #3, &quot;instrunction&quot; --&gt; &quot;instruction&quot;
fixed

- 19.4.1, 2nd example, &quot;as a inspection&quot; --&gt; &quot;as inspection&quot;
fixed

- 19.8.1, item 1.c.i, &quot;adjusted sweep&quot; --&gt; &quot;adjusted sweep S&apos;&quot; (as elsewhere in this section)
fixed

- 19.8.2, &quot;an choice operand group&quot;, &quot;an&quot; --&gt; &quot;a&quot;
fixed

- 19.8.4.5 #3 in list, &quot;[...]the the current mode[...]&quot; --&gt; &quot;that the&quot;
actually =&gt; &quot;then the&quot;

- 19.8.4.10 &quot;expresssions&quot; --&gt; &quot;expressions&quot;
fixed

- 19.8.15, 1st Note, 2nd para &quot;aread&quot; --&gt; &quot;ahead&quot;
fixed

- 19.9, 3rd example, #2.c.ii, &quot;establised&quot; --&gt; &quot;established&quot;
fixed

- 19.9, 3rd example, #6, &quot;containined&quot; --&gt; &quot;contained&quot;
fixed

- 21.1.4, missing space in &quot;[ERR XPTY0004] XP30occurs&quot; (before &quot;occurs&quot;)
fixed

- 23.1.1, last para under Notes, &quot;anr&quot; --&gt; &quot;and&quot;
fixed

- 23.2.2, under Rules, 1st para, &quot;the it is&quot; --&gt; &quot;then it is&quot;
fixed

- C Glossary, item &quot;potentially consuming&quot;, ends with colon &quot;:&quot;, but nothing after it
tricky to fix because a term definition can&apos;t cross a paragraph boundary

- L, item #110, &quot;cose&quot; --&gt; &quot;case&quot;
fixed

- L, item #136, &quot;practise&quot; --&gt; &quot;practice&quot;
I must improve my knowledge of American spelling.

- M, item #6, &quot;practise&quot; --&gt; &quot;practice&quot;
do.

- XTSE3280 (2x) &quot;has has&quot; --&gt; &quot;has&quot;
fixed


Coding errors/typos (potentially not just editorial):
- 3.5, &quot;[xsl:]default-validaion&quot; --&gt; &quot;[xsl:]default-validation&quot;
fixed

- 5.7.2, first ex., newline just before &quot;&gt;&quot; (can be left on same line as instruction)
it was intended to be this way.

- 6.7.x: some examples use mode=&quot;M&quot;, some don&apos;t, sometimes it is mixed for examples in one section. I think the mode=&quot;M&quot; can be removed for all &quot;equivalency&quot; coding examples.
I suspect you are right.

- 6.7.1, built-in template rule, 2nd example, is not legal syntax: match=&quot;text()|@*|xs:anyAtomicType&quot;
Fixed by separating this into two rules

- 6.7.1, para before green example block, contains function items, this is not allowed:
    &lt;xsl:template 
       match=&quot;processing-instruction()|comment()|namespace-node()|function(*)&quot; 
       mode=&quot;M&quot;/&gt;
Split this one too.

- 8.3.2 &quot;FAOR0001&quot; --&gt; &quot;FOAR0001&quot;
fixed

- 18.2.8 last example, &quot;pap:put&quot; --&gt; &quot;map:put&quot;
already fixed.

- 19.8.2, example &quot;if ($gratis) then 0 else price else&quot;, remove last &quot;else&quot;
fixed.


Layout / font-choice / links etc errors:
- 3.14.2, 2nd coding example, wrong indentation 2nd line.
already fixed

- 6.5, item #4, PredicateList is not linked (other productions in this section are)
fixed

- 6.7.1, last example, just before the green block of &quot;Example: Using a Build-in Template Rule&quot;, the grey block is connected with it. A paragraph (whiteline) seems appropriate here.
added a non-white para, since white paras get stripped.

- 10, definition of &quot;invocation constructs&quot;, the link to &quot;stylesheet functions&quot; goes haywire (duplicated)
- same in C Glossary
fixed

- 15.4, 2nd para, &quot;current-merge-group()&quot; is not hyperlinked, other fu&apos;s are
fixed

- 19.2, table under VarRef[55], 2nd col, &quot;$V&quot; should be in Courier
fixed

- 19.8.8.14 first para &quot;If the context posture for a cll on the last[...]&quot;, link should point to &quot;context posture&quot;, not &quot;posture&quot;
fixed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111385</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-09-11 14:12:51 +0000</bug_when>
    <thetext>&gt; - everywhere &quot;compenenents&quot; --&gt; &quot;components&quot; (2x)
&gt; not found

it was &quot;compenents&quot;, typo about a typo ;).

&gt; - 6.6.1, in table, last cell, &quot;the value private.A&quot; --&gt; &quot;...private. A&quot; (space)
&gt; browser rendering problem?

No, in fact the HTML source misses it too. The word &quot;private&quot; is within &lt;code&gt; tags. Anyway, I guess we have better things to do than to fix a missing space ;).

&gt; - 3.11 missing closing paren in the last para of last Note
&gt; not found

I can&apos;t find it either, but on a new regex search, I saw missing closing parens in:

2.3.6
&quot;(such as xsl:result-document are evaluated that depend on the value of the base output URI.&quot;

3.6.2 (in Note)
&quot;(to link to the implementation of these components so they can be invoked. A failure to locate a package may cause an error at either stage.&quot;

10.3.9 (in Example: a Higher-Order Function)
&quot; (for example, whether one person is among the staff managed directly or indirectly by a manager, or whether one parcel of land is contained directly or indirectly within another parcel. &quot;

12.2 (before examples, also note typo in &quot;the is then&quot;)
&quot; (the is then converted into a string using the effective values of the attributes specified in 12.3 Number to String Conversion Attributes; each of these attributes is interpreted as an attribute value template. &quot;


19.2 (Note under table)
&quot;(on the grounds that an xs:duration or xs:dateTime has no effective boolean value, and static type inference only needs to consider the type of non-error results&quot;

Note: I searched, but did not find missing opening parens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111431</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-09-12 10:32:41 +0000</bug_when>
    <thetext>I have dealt with the additional points in comment #2.

Regarding the built-in template rules, I have added mode=&quot;M&quot; to all cases where it was absent, for consistency.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>