From:
<car...@te...> - 2004-06-16 14:52:49
|
Hello: I have modified the fo.xsl file adding a modified template (based on the docbook one) for note, important, warning, caution and tip elements for render them with a background color, i haven't done it in the best way but seems to work ;) , it's of interest here it's: <xsl:template match="note|important|warning|caution|tip"> <xsl:param name="node" select="."/> <xsl:variable name="color"> <xsl:choose> <xsl:when test="name($node)='note'">F0FFFF</xsl:when> <xsl:when test="name($node)='warning'">FFE4E1</xsl:when> <xsl:when test="name($node)='caution'">FFE4E1</xsl:when> <xsl:when test="name($node)='tip'">F0FFFF</xsl:when> <xsl:when test="name($node)='important'">FFE4E1</xsl:when> </xsl:choose> </xsl:variable> <fo:block background-color="#{$color}"> <xsl:call-template name="nongraphical.admonition"/> </fo:block> </xsl:template> Comments are welcome !! :D -- Best regards Carlos Guzmán Álvarez Vigo-Spain |