[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Background for programlisting
Lars,
Not sure what happened in your layer, but here is what I use for
progrmalisting shading.
Regards,
Dean Nelson
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" > <xsl:param name="shade.verbatim"
select="1"></xsl:param>
<xsl:attribute-set name="shade.verbatim.style"> <xsl:attribute name="font-family"> <xsl:value-of select="$monospace.font.family"/> </xsl:attribute> <xsl:attribute name="font-size"> <xsl:value-of select="$body.font.master * 0.9"/> <xsl:text>pt</xsl:text> </xsl:attribute> <xsl:attribute name="border-color">#0000FF</xsl:attribute> <xsl:attribute name="border-style">solid</xsl:attribute> <xsl:attribute name="border-width">heavy</xsl:attribute> <xsl:attribute name="background-color">#F0F0F0</xsl:attribute> <xsl:attribute name="padding">10pt</xsl:attribute> <xsl:attribute name="wrap-option">wrap</xsl:attribute> </xsl:attribute-set> <!-- Use this if you need line breaks in long
listings
<xsl:attribute-set name="monospace.verbatim.properties"> <xsl:attribute name="wrap-option">wrap</xsl:attribute> </xsl:attribute-set> --> <!-- =================== Program listing
shading =================== -->
<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties"> <xsl:attribute name="font-family"> <xsl:value-of select="$monospace.font.family"/> </xsl:attribute> <xsl:attribute name="font-size"> <xsl:value-of select="$body.font.master * 0.9"/> <xsl:text>pt</xsl:text> </xsl:attribute> <xsl:attribute name="border-color">#0000FF</xsl:attribute> <xsl:attribute name="border-style">solid</xsl:attribute> <xsl:attribute name="border-width">heavy</xsl:attribute> <xsl:attribute name="background-color">#F0F0F0</xsl:attribute> <xsl:attribute name="padding">10pt</xsl:attribute> <xsl:attribute name="wrap-option">wrap</xsl:attribute> <xsl:attribute name="hyphenation-character">►</xsl:attribute>
<!--FOP doesn't support this yet?
-->
</xsl:attribute-set> </xsl:stylesheet> In a message dated 6/14/2012 4:03:24 P.M. Pacific Daylight Time,
lars.vogel@googlemail.com writes:
Hello, In a message dated 6/14/2012 4:03:24 P.M. Pacific Daylight Time,
lars.vogel@googlemail.com writes:
Hello, |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]