<?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>27676</bug_id>
          
          <creation_ts>2014-12-19 19:24:34 +0000</creation_ts>
          <short_desc>Typography makes it extremely difficult to find the definition of a built-in template</short_desc>
          <delta_ts>2015-10-29 09:50:30 +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>dnovatchev</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>dnovatchev</cc>
          
          <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>116564</commentid>
    <comment_count>0</comment_count>
    <who name="">dnovatchev</who>
    <bug_when>2014-12-19 19:24:34 +0000</bug_when>
    <thetext>In section &quot;6.7.1 Built-in Templates: Text-only Copy&quot; at http://www.w3.org/TR/2014/WD-xslt-30-20141002/#built-in-templates-text-only-copy, we read:

&quot;The built-in template rule for text and attribute nodes returns a text node containing the string value of the context node. It is effectively:

&lt;xsl:template match=&quot;text()|@*&quot; mode=&quot;M&quot;&gt;
  &lt;xsl:value-of select=&quot;string(.)&quot;/&gt;
&lt;/xsl:template&gt;
Note:

This text node may have a string value that is zero-length.

diff=&quot;chg&quot; at=&quot;R-bug26751&quot;&gt;The built-in template rule atomic values returns a text node containing the value. It is effectively:

&lt;xsl:template match=&quot;.[. instance of xs:anyAtomicType]&quot; mode=&quot;M&quot;&gt;
  &lt;xsl:value-of select=&quot;string(.)&quot;/&gt;
&lt;/xsl:template&gt;
Note:

This text node may have a string value that is zero-length.

The built-in template rule for processing instructions, comments, and namespace nodes does nothing (it returns the empty sequence).&quot;



It is very difficult to notice that the quoted text actually contains the definitions for two built-in templates, the second being buried inside a Note for the first definition. Also, it seems that the displayed string &apos;diff=&quot;chg&quot; at=&quot;R-bug26751&quot;&gt;&apos; is the result of accident and this may be the cause of the way the text is displayed (both in Chrome and IE11).

Because of the importance of built-in templates in the language, any reader would expect any built-in template definition to be clearly visible and not hidden among other text. Besides correcting the typography, adding a TOC entry for every built-in template will significantly improve the quality of the document.

Dimitre Novatchev</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116571</commentid>
    <comment_count>1</comment_count>
    <who name="">dnovatchev</who>
    <bug_when>2014-12-19 20:23:23 +0000</bug_when>
    <thetext>Also, the sentence: &quot;The built-in template rule atomic values returns a text node containing the value.&quot; was probably intended to be: &quot;The built-in template rule *for* atomic values returns a text node containing the value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116628</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-12-21 18:48:39 +0000</bug_when>
    <thetext>Thanks. I have fixed these typos.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>