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"/>
7 <xsl:template match="/">
8 <xsl:call-template name="rml"/>
13 <xsl:template name="stylesheet">
14 <paraStyle name="title" fontName="Helvetica-Bold" fontSize="22" alignment="center"/>
15 <paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
16 <paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT"/>
17 <paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/>
18 <paraStyle name="terp_tblheader_Details_Right_bold" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/>
20 <blockTableStyle id="header">
21 <blockValign value="TOP"/>
22 <blockAlignment value="RIGHT"/>
23 <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,-1"/>
25 <blockTableStyle id="lines">
26 <blockValign value="TOP"/>
27 <blockAlignment value="RIGHT"/>
28 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1"/>
30 <blockTableStyle id="total">
31 <blockValign value="TOP"/>
32 <blockAlignment value="RIGHT"/>
33 <lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,0" stop="-1,-1"/>
35 <blockTableStyle id="sub_total">
36 <blockValign value="TOP"/>
37 <blockAlignment value="RIGHT"/>
38 <lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,0" stop="-1,-1"/>
42 <xsl:template name="story">
43 <xsl:apply-templates select="report"/>
46 <xsl:template match="report">
47 <xsl:apply-templates select="config"/>
48 <xsl:apply-templates select="title"/>
49 <xsl:apply-templates select="lines"/>
52 <xsl:template match="config">
54 <xsl:value-of select="report-header"/>
56 <spacer length="1cm" width="2mm"/>
59 <xsl:template match="title">
61 <xsl:value-of select="."/>
63 <spacer length="1cm" width="2mm"/>
67 <xsl:template match="header">
69 <xsl:for-each select="field">
71 <para style="terp_tblheader_General">
72 <xsl:value-of select="."/>
79 <xsl:template match="lines">
81 <xsl:apply-templates select="title"/>
83 <xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute>
84 <xsl:attribute name="colWidths">
85 <xsl:value-of select="../config/tableSize"/>
88 <xsl:apply-templates select="row"/>
92 <xsl:if test="@style!='header'">
93 <spacer length="2mm" width="2mm"/>
96 <xsl:if test="@style='total'">
97 <xsl:if test="position() < last()">
104 <xsl:template match="row">
106 <xsl:apply-templates select="col"/>
110 <xsl:template match="col">
113 <xsl:when test="@para='yes'">
115 <xsl:when test="@tree='yes'">
116 <para style="terp_default_8">
117 <xsl:attribute name="leftIndent"><xsl:value-of select="@space"/></xsl:attribute>
118 <xsl:value-of select="."/>
122 <para style="terp_default_8">
123 <xsl:value-of select="."/>
128 <xsl:when test="@f='yes'">
129 <para style="terp_tblheader_Details_Right">
130 <xsl:value-of select="."/>
133 <xsl:when test="@t='yes'">
134 <para style="terp_tblheader_Details_Right_bold">
135 <xsl:value-of select="."/>
139 <para style="terp_tblheader_General">
140 <xsl:value-of select="."/>