You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by fu...@apache.org on 2006/09/29 00:37:14 UTC

svn commit: r451052 - /db/derby/docs/trunk/lib/dita2fo-titles.xsl

Author: fuzzylogic
Date: Thu Sep 28 15:37:13 2006
New Revision: 451052

URL: http://svn.apache.org/viewvc?view=rev&rev=451052
Log:
DERBY-408: Make figure numbering in documentation sequential.

Modified:
    db/derby/docs/trunk/lib/dita2fo-titles.xsl

Modified: db/derby/docs/trunk/lib/dita2fo-titles.xsl
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/lib/dita2fo-titles.xsl?view=diff&rev=451052&r1=451051&r2=451052
==============================================================================
--- db/derby/docs/trunk/lib/dita2fo-titles.xsl (original)
+++ db/derby/docs/trunk/lib/dita2fo-titles.xsl Thu Sep 28 15:37:13 2006
@@ -107,7 +107,8 @@
     <xsl:call-template name="getString">
       <xsl:with-param name="stringName" select="'Figure'"/>
     </xsl:call-template>
-    <xsl:number level="single" count="title" from="/" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="count(preceding::*[contains(@class,' topic/fig ')]/*[contains(@class,' topic/title ')])+1"/>
   </xsl:variable>
   <fo:block font-weight="bold">
     <fo:inline color="red"><xsl:value-of select="$fig-pfx-txt"/>. </fo:inline>