db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r451052 - /db/derby/docs/trunk/lib/dita2fo-titles.xsl
Date Thu, 28 Sep 2006 22:37:14 GMT
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>



Mime
View raw message