<xsl:template name="orderedlist-starting-number">
<xsl:param name="list" select="."/>
+
+ <!-- Need a neutral dbxxx -->
+ <xsl:variable name="pi-html-start">
+ <xsl:call-template name="pi-attribute">
+ <xsl:with-param name="pis"
+ select="$list/processing-instruction('dbhtml')"/>
+ <xsl:with-param name="attribute" select="'start'"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <xsl:variable name="pi-fo-start">
+ <xsl:call-template name="pi-attribute">
+ <xsl:with-param name="pis"
+ select="$list/processing-instruction('dbfo')"/>
+ <xsl:with-param name="attribute" select="'start'"/>
+ </xsl:call-template>
+ </xsl:variable>
+
<xsl:choose>
- <xsl:when test="not($list/@continuation = 'continues')">1</xsl:when>
+ <xsl:when test="not($list/@continuation = 'continues')">
+ <xsl:choose>
+ <xsl:when test="$pi-html-start != ''">
+ <xsl:value-of select="$pi-html-start"/>
+ </xsl:when>
+ <xsl:when test="$pi-fo-start != ''">
+ <xsl:value-of select="$pi-fo-start"/>
+ </xsl:when>
+ <xsl:otherwise>1</xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
<xsl:otherwise>
<xsl:variable name="prevlist"
select="$list/preceding::orderedlist[1]"/>
</xsl:template>
<xsl:template match="orderedlist">
- <xsl:variable name="pi-start">
- <xsl:call-template name="dbhtml-attribute">
- <xsl:with-param name="pis"
- select="processing-instruction('dbhtml')"/>
- <xsl:with-param name="attribute" select="'start'"/>
- </xsl:call-template>
- </xsl:variable>
-
<xsl:variable name="start">
- <xsl:choose>
- <xsl:when test="@continuation='continues'">
- <xsl:call-template name="orderedlist-starting-number"/>
- </xsl:when>
- <xsl:when test="$pi-start != ''">
- <xsl:value-of select="$pi-start"/>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
+ <xsl:call-template name="orderedlist-starting-number"/>
</xsl:variable>
<xsl:variable name="numeration">