<?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>4149</bug_id>
          
          <creation_ts>2007-01-05 16:54:22 +0000</creation_ts>
          <short_desc>[XSLT 2.0] Missing parenthesis in example</short_desc>
          <delta_ts>2007-01-16 17:51:08 +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 2.0</component>
          <version>Proposed Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</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>13353</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-05 16:54:22 +0000</bug_when>
    <thetext>The following comment was raised on the W3C XSL WG list, and is copied here for the record. It will be fixed editorially.

In 18.1.1 Testing Availability of Functions

Example: Stylesheet portable between XSLT 2.0 and a future version of XSLT

&lt;xsl:value-of select=&quot;pad($input, 10)&quot;
               use-when=&quot;function-available(&apos;pad&apos;, 2)&quot;/&gt;  &lt;xsl:value-of select=&quot;concat($input, string-join(
                          for $i in 1 to 10 - string-length($input)
                                                  return &apos; &apos;, &apos;&apos;))&quot;
               use-when=&quot;not(function-available(&apos;pad&apos;, 2)&quot;/&gt;


a &apos;)&apos; is missing, so should be

&lt;xsl:value-of select=&quot;pad($input, 10)&quot;
               use-when=&quot;function-available(&apos;pad&apos;, 2)&quot;/&gt;  &lt;xsl:value-of select=&quot;concat($input, string-join(
                          for $i in 1 to 10 - string-length($input)
                                                  return &apos; &apos;, &apos;&apos;))&quot;
               use-when=&quot;not(function-available(&apos;pad&apos;, 2))&quot;/&gt;

Mohamed

--
Innovimax SARL
Consulting, Training &amp; XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13354</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-05 18:16:37 +0000</bug_when>
    <thetext>This bug report prompted me to do some further syntax checking of examples, and this revealed other trivial errors:

In 3.14, the inline schema example is missing a namespace declaration of the XML Schema namespace

In 6.6, the end tag &lt;/apply-template&gt; should be &lt;/apply-templates&gt;

Also in 6.6, the &lt;xsl:with-param name=&quot;init&quot;/&gt; that appears as a child of &lt;xsl:template&gt; should be &lt;xsl:param&gt;

In 11.1.3, xsl:version=1.0&quot; is missing the quotes after the equals sign

In 12.2, Example: Numbing the Items in an Ordered List, the end tag of xsl:template is missing its &quot;/&quot;

In 13.2, the as attribute of the xsl:function named bib:books-by-price is missing its closing quotes

I have fixed all of these editorially.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13355</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-05 18:23:00 +0000</bug_when>
    <thetext>Yes, that example really is entitled &quot;Numbing the Items in an Ordered List&quot; - I&apos;ll fix that too.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>