</xsl:for-each>
</xsl:template>
-
<!-- * ============================================================== -->
<!-- * Output the tbl(1)-formatted contents of each cell. -->
<!-- * ============================================================== -->
</xsl:param>
<xsl:param name="cell-data-sorted">
<!-- * Sort the cells so that the dummy cells get put where we -->
- <!-- * need them in the structure. -->
+ <!-- * need them in the structure. Note that we need to specify -->
+ <!-- * data-type="number" here because the default sorting method -->
+ <!-- * for xsl:sort is "text" (alphabetical). -->
<xsl:for-each select="exsl:node-set($cell-data-unsorted)/cell">
- <xsl:sort select="@row"/>
- <xsl:sort select="@slot"/>
+ <xsl:sort select="@row" data-type="number"/>
+ <xsl:sort select="@slot" data-type="number"/>
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:param>