TOC text font changed to bold

This commit is contained in:
hneemann 2016-11-20 17:08:33 +01:00
parent 4aa0b667b5
commit d48f91d02a
2 changed files with 9 additions and 1 deletions

View File

@ -21,6 +21,12 @@ import java.awt.image.BufferedImage;
import java.io.*;
/**
* This is not a real test case.
* This piece of code reads the elements from the library and creates an XML document containing all descriptive
* information used to create th tooltips in teh program. After that Xalan is used to transform the XML document
* to a XSL-FO document. Then FOP is used to read the XSL-FO file and to compile it to a PDF document.
* The PDF document is then included in the distribution ZIP.
*
* Created by hneemann on 17.11.16.
*/
public class DocuTest extends TestCase {

View File

@ -52,7 +52,7 @@
</xsl:element>
</fo:block>
<!-- table of contents text -->
<fo:block page-break-before="always" margin-bottom="5mm" font-size="18pt" >
<fo:block page-break-before="always" margin-bottom="5mm" font-size="18pt" font-weight="bold">
<xsl:value-of select="@inhalt"/>
</fo:block>
<!-- table of contents -->
@ -66,6 +66,7 @@
</fo:root>
</xsl:template>
<!-- Creation of the table of content-->
<xsl:template match="lib" mode="inhalt">
<fo:block>
<xsl:value-of select="position()"/>. <xsl:value-of select="@name"/>
@ -91,6 +92,7 @@
</fo:block>
</xsl:template>
<!-- Creation of the text -->
<xsl:template match="lib" mode="full">
<fo:block margin-top="4mm" margin-bottom="4mm" font-size="16pt" font-weight="bold">
<xsl:value-of select="position()"/>. <xsl:value-of select="@name"/>