1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
4 <xsl:import href="custom_default.xsl"/>
5 <xsl:import href="custom_rml.xsl"/>
6 <xsl:variable name="page_format">a4_normal</xsl:variable>
9 <xsl:template match="/">
10 <xsl:call-template name="rml"/>
15 <xsl:template name="stylesheet">
16 <paraStyle name="title" fontName="Helvetica-Bold" fontSize="15.0" alignment="center"/>
17 <paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT"/>
18 <paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
19 <paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/>
20 <paraStyle name="terp_tblheader_Details_Right_bold" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/>
22 <blockTableStyle id="header">
23 <blockValign value="TOP"/>
24 <blockAlignment value="RIGHT"/>
25 <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,-1"/>
27 <blockTableStyle id="lines">
28 <blockValign value="TOP"/>
29 <blockAlignment value="RIGHT"/>
30 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1"/>
32 <blockTableStyle id="total">
33 <blockValign value="TOP"/>
34 <blockAlignment value="RIGHT"/>
35 <lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,0" stop="-1,-1"/>
37 <blockTableStyle id="sub_total">
38 <blockValign value="TOP"/>
39 <blockAlignment value="RIGHT"/>
40 <lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,0" stop="-1,-1"/>
44 <xsl:template name="story">
45 <xsl:apply-templates select="report"/>
48 <xsl:template match="report">
49 <xsl:apply-templates select="config"/>
50 <xsl:apply-templates select="title"/>
51 <xsl:apply-templates select="lines"/>
54 <xsl:template match="config">
56 <xsl:value-of select="report-header"/>
60 <xsl:template match="title">
62 <xsl:value-of select="."/>
64 <spacer length="1cm" width="2mm"/>
68 <xsl:template match="header">
70 <xsl:for-each select="field">
72 <para style="terp_tblheader_General">
73 <xsl:value-of select="."/>
80 <xsl:template match="lines">
82 <xsl:apply-templates select="title"/>
84 <xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute>
85 <xsl:attribute name="colWidths">
86 <xsl:value-of select="../config/tableSize"/>
89 <xsl:apply-templates select="row"/>
93 <xsl:if test="@style!='header'">
94 <spacer length="2mm" width="2mm"/>
97 <xsl:if test="@style='total'">
98 <xsl:if test="position() < last()">
105 <xsl:template match="row">
107 <xsl:apply-templates select="col"/>
111 <xsl:template match="col">
114 <xsl:when test="@para='yes'">
116 <xsl:when test="@tree='yes'">
117 <para style="terp_default_8">
118 <xsl:attribute name="leftIndent"><xsl:value-of select="@space"/></xsl:attribute>
119 <xsl:value-of select="."/>
123 <para style="terp_default_8">
124 <xsl:value-of select="."/>
129 <xsl:when test="@f='yes'">
130 <para style="terp_tblheader_Details_Right">
131 <xsl:value-of select="."/>
134 <xsl:when test="@t='yes'">
135 <para style="terp_tblheader_Details_Right_bold">
136 <xsl:value-of select="."/>
140 <para style="terp_tblheader_General">
141 <xsl:value-of select="."/>