From: <bob...@us...> - 2012-11-07 20:02:25
|
Revision: 9664 http://docbook.svn.sourceforge.net/docbook/?rev=9664&view=rev Author: bobstayton Date: 2012-11-07 20:02:17 +0000 (Wed, 07 Nov 2012) Log Message: ----------- Convert hard wired xsl:number for production into a template with mode="label.markup" to be consistent with other element numbering. Modified Paths: -------------- trunk/xsl/common/labels.xsl trunk/xsl/fo/ebnf.xsl trunk/xsl/html/ebnf.xsl Modified: trunk/xsl/common/labels.xsl =================================================================== --- trunk/xsl/common/labels.xsl 2012-11-06 19:09:16 UTC (rev 9663) +++ trunk/xsl/common/labels.xsl 2012-11-07 20:02:17 UTC (rev 9664) @@ -791,6 +791,10 @@ <xsl:number value="$item-number" format="{$type}"/> </xsl:template> +<xsl:template match="production" mode="label.markup"> + <xsl:number count="production" level="any"/> +</xsl:template> + <xsl:template match="abstract" mode="label.markup"> <!-- nop --> </xsl:template> Modified: trunk/xsl/fo/ebnf.xsl =================================================================== --- trunk/xsl/fo/ebnf.xsl 2012-11-06 19:09:16 UTC (rev 9663) +++ trunk/xsl/fo/ebnf.xsl 2012-11-07 20:02:17 UTC (rev 9664) @@ -99,7 +99,7 @@ <fo:table-cell> <fo:block text-align="start"> <xsl:text>[</xsl:text> - <xsl:number count="production" level="any"/> + <xsl:apply-templates select="." mode="label.markup"/> <xsl:text>]</xsl:text> </fo:block> </fo:table-cell> Modified: trunk/xsl/html/ebnf.xsl =================================================================== --- trunk/xsl/html/ebnf.xsl 2012-11-06 19:09:16 UTC (rev 9663) +++ trunk/xsl/html/ebnf.xsl 2012-11-07 20:02:17 UTC (rev 9664) @@ -107,7 +107,7 @@ <tr> <td align="{$direction.align.start}" valign="top" width="3%"> <xsl:text>[</xsl:text> - <xsl:number count="production" level="any"/> + <xsl:apply-templates select="." mode="label.markup"/> <xsl:text>]</xsl:text> </td> <td align="{$direction.align.end}" valign="top" width="10%"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |