scan: replace workaround with proper fix
[gtk-doc.git] / gtk-doc-fo.xsl
blobda415e180f3214a2c84204debb83d036c62bcaae
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2 xmlns:fo="http://www.w3.org/1999/XSL/Format"
3 version="1.0">
5 <!-- import the chunked fo stylesheet -->
6 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
8 <!-- change some parameters -->
9 <xsl:attribute-set name="monospace.verbatim.properties">
10 <!--xsl:attribute name="font-family">Monospace</xsl:attribute-->
11 <xsl:attribute name="font-size">7pt</xsl:attribute>
12 <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
13 </xsl:attribute-set>
15 <xsl:param name="shade.verbatim" select="1"/>
17 <xsl:attribute-set name="shade.verbatim.style">
18 <xsl:attribute name="background-color">#D0D0D0</xsl:attribute>
19 <xsl:attribute name="border-width">0.5pt</xsl:attribute>
20 <xsl:attribute name="border-style">solid</xsl:attribute>
21 <xsl:attribute name="border-color">#575757</xsl:attribute>
22 <xsl:attribute name="padding">3pt</xsl:attribute>
23 </xsl:attribute-set>
25 <xsl:attribute-set name="xref.properties">
26 <xsl:attribute name="color">
27 <xsl:choose>
28 <xsl:when test="self::ulink">blue</xsl:when>
29 <xsl:otherwise>inherit</xsl:otherwise>
30 </xsl:choose>
31 </xsl:attribute>
32 </xsl:attribute-set>
34 </xsl:stylesheet>