<?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>9927</bug_id>
          
          <creation_ts>2010-06-15 10:36:55 +0000</creation_ts>
          <short_desc>[XSLT 2.0] xsl:number grouping-size</short_desc>
          <delta_ts>2010-08-08 21:38:20 +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>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xslt20/#number</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="Tim Mills">tim</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>36176</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2010-06-15 10:36:55 +0000</bug_when>
    <thetext>The specification says very little about permitted values for the grouping-size attribute of xsl:number (other than it must be a &apos;number&apos;).

&lt;xsl:number
  ...
  grouping-size? = { number } /&gt;

Can this be clarified?  e.g. must be castable to xs:positiveInteger 

I&apos;d expect XTSE0020 and XTDE0030 to cover the static and dynamic error cases.

The test suite doesn&apos;t appear to contain tests which might cause such errors, and I&apos;ve observed an XSLT implementation which rejects non-integer numeric values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36178</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-06-15 11:03:41 +0000</bug_when>
    <thetext>Good point. I would think that it makes sense to require it to be a string in the lexical space of xs:positiveInteger.

XSLT 2.0 uses exactly the same wording as 1.0, which simply requires a &quot;number&quot;. One could argue that &quot;number&quot; in XSLT 1.0 means xs:double, but since there are no clues what to do with non-integer values, it&apos;s hard to argue that they should be supported on compatibility grounds.

Michael Kay (personal response)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36515</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-01 16:54:54 +0000</bug_when>
    <thetext>Proposal accepted today: the value is a string in the lexical space of xs:decimal; it&apos;s then rounded using round(); if the result is positive it is used as the grouping size; if it&apos;s zero or negative then it&apos;s ignored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36901</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-15 09:53:11 +0000</bug_when>
    <thetext>Resolved as in comment #2; this will be erratum E51.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>