From: <pau...@us...> - 2011-02-19 05:07:48
|
Author: paultremblay Date: 2011-02-19 06:07:41 +0100 (Sat, 19 Feb 2011) New Revision: 6906 Modified: trunk/sandbox/paultremblay/docutilsToFo/xsl_fo/definition_list.xsl Log: Attribute set and block for definition as a whole. Modified: trunk/sandbox/paultremblay/docutilsToFo/xsl_fo/definition_list.xsl =================================================================== --- trunk/sandbox/paultremblay/docutilsToFo/xsl_fo/definition_list.xsl 2011-02-19 05:06:33 UTC (rev 6905) +++ trunk/sandbox/paultremblay/docutilsToFo/xsl_fo/definition_list.xsl 2011-02-19 05:07:41 UTC (rev 6906) @@ -20,8 +20,7 @@ </xsl:attribute-set> <!--Sames as definition-list-item-block, but for the first block. - Since this inherits from the definition-list-item-block, it doesn't - make sense to changes this directly + It inherits from the definition-list-item-block. --> <xsl:attribute-set name="definition-list-item-first-block" use-attribute-sets="definition-list-item-block" > <xsl:attribute name="space-before">0pt</xsl:attribute> @@ -34,7 +33,10 @@ <xsl:attribute name="font-weight">bold</xsl:attribute> </xsl:attribute-set> + <xsl:attribute-set name="definition-block"> + </xsl:attribute-set> + <!-- <xsl:attribute-set name="definition-term-inline"> <xsl:attribute name="font-weight">bold</xsl:attribute> @@ -99,7 +101,9 @@ </xsl:template> <xsl:template match="definition_list_item/definition"> + <fo:block role="definition" xsl:use-attribute-sets = "definition-block"> <xsl:apply-templates/> + </fo:block> </xsl:template> <xsl:template match="definition/paragraph[1]" priority="2"> |