This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
A simple and useful addition to xsl:number would be an attribute start-at="expression" 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: <xsl:iterate select="collection('chapters')"> <xsl:param name="first-fig" select="1"/> <xsl:apply-templates> <xsl:with-param name="first-fig" select="$first-fig" tunnel="yes"/> </xsl:apply-templates> ... <xsl:next-iteration> <xsl:param name="first-fig" select="$first-fig + count(.//figure)"/> </xsl:next-iteration> </xsl:iterate> <xsl:template match="figure"> <xsl:param name="first-fig" tunnel="yes"/> Figure <xsl:number level="any" start-at="$first-fig"/> </xsl:template> Requirement extrapolated from a question on xsl-list today.
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.
Status: this feature is in the current draft.
Closing this on the grounds that we have a design in the current working draft that meets the requirements.