]> granicus.if.org Git - docbook-dsssl/commitdiff
Support 'start' PI on ordered lists
authorNorman Walsh <ndw@nwalsh.com>
Sat, 12 Apr 2003 21:11:52 +0000 (21:11 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 12 Apr 2003 21:11:52 +0000 (21:11 +0000)
xsl/html/lists.xsl

index 6ccc4dfe0f7c067f83482d5dd0b9b766109e13c1..86d20c406336fadd206b8b1e33401ad317d1f35f 100644 (file)
 </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:variable>