<?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>8402</bug_id>
          
          <creation_ts>2009-11-30 15:56:27 +0000</creation_ts>
          <short_desc>[XSLT 2.1] xsl:number start-at attribute</short_desc>
          <delta_ts>2011-06-08 20:41: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 3.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></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="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>29793</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-11-30 15:56:27 +0000</bug_when>
    <thetext>A simple and useful addition to xsl:number would be an attribute

start-at=&quot;expression&quot;

to control the first number in the numbering sequence (defaulting to 1).

Useful for example where numbering is to run across the documents in a collection: 

&lt;xsl:iterate select=&quot;collection(&apos;chapters&apos;)&quot;&gt;
  &lt;xsl:param name=&quot;first-fig&quot; select=&quot;1&quot;/&gt;
  &lt;xsl:apply-templates&gt;
    &lt;xsl:with-param name=&quot;first-fig&quot; select=&quot;$first-fig&quot; tunnel=&quot;yes&quot;/&gt;
  &lt;/xsl:apply-templates&gt;
  ...
  &lt;xsl:next-iteration&gt;
   &lt;xsl:param name=&quot;first-fig&quot; select=&quot;$first-fig + count(.//figure)&quot;/&gt;
  &lt;/xsl:next-iteration&gt;
&lt;/xsl:iterate&gt;

&lt;xsl:template match=&quot;figure&quot;&gt;
  &lt;xsl:param name=&quot;first-fig&quot; tunnel=&quot;yes&quot;/&gt;
  Figure &lt;xsl:number level=&quot;any&quot; start-at=&quot;$first-fig&quot;/&gt;
&lt;/xsl:template&gt;

Requirement extrapolated from a question on xsl-list today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36945</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-16 11:32:03 +0000</bug_when>
    <thetext>Accepted in principle. Noted that the parameter may be a sequence of integers, one for each level in the numbering hierarchy. Need error conditions if the value is the wrong type, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46952</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-03-24 13:45:48 +0000</bug_when>
    <thetext>Status: this feature is in the current draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49340</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-06-08 20:40:53 +0000</bug_when>
    <thetext>Closing this on the grounds that we have a design in the current working draft that meets the requirements.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>