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="../../base/report/custom_default_printscreen.xsl"/>
5 <xsl:import href="../../base/report/custom_rml_printscreen.xsl"/>
6 <xsl:template match="/">
7 <xsl:call-template name="rml">
8 <xsl:with-param name="pageSize" select="report/config/PageSize"/>
9 <xsl:with-param name="page_format" select="report/config/PageFormat"/>
15 <xsl:template name="stylesheet">
16 <paraStyle name="title" fontName="Helvetica-Bold" fontSize="22" alignment="center"/>
17 <paraStyle name="test" alignment="left" />
18 <paraStyle name="float_right" alignment="left"/>
19 <paraStyle name="tbl_heading" alignment="left"/>
20 <blockTableStyle id="products">
21 <!--<blockBackground colorName="grey" start="0,0" stop="-1,0"/> -->
22 <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
23 <blockValign value="TOP"/>
24 <blockAlignment value="RIGHT"/>
25 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1"/>
26 <!-- <lineStyle kind="GRID" colorName="black"/> -->
30 <xsl:template name="story">
31 <xsl:apply-templates select="report"/>
34 <xsl:template match="report">
35 <xsl:apply-templates select="config"/>
36 <!--<setNextTemplate name="other_pages"/>-->
37 <blockTable style="products">
38 <xsl:if test="string-length(./config/tableSize)>1">
39 <xsl:attribute name="colWidths">
40 <xsl:value-of select="./config/tableSize"/>
44 <xsl:apply-templates select="header"/>
45 <xsl:apply-templates select="lines"/>
49 <xsl:template match="config">
51 <xsl:value-of select="report-header"/>
53 <spacer length="1cm" width="2mm"/>
56 <xsl:template match="header">
58 <xsl:for-each select="field">
60 <para style="tbl_heading"><font fontName="Helvetica-Bold" fontSize="9">
61 <xsl:value-of select="."/></font>
68 <xsl:template match="lines">
69 <xsl:apply-templates select="row"/>
72 <xsl:template match="row">
74 <xsl:apply-templates select="col"/>
78 <xsl:template match="col">
81 <xsl:when test="@para='yes'">
83 <xsl:when test="@tree='yes'">
85 <xsl:attribute name="leftIndent"><xsl:value-of select="@space"/></xsl:attribute>
86 <font fontName="Helvetica" fontSize="9">
87 <xsl:value-of select="."/>
91 <xsl:when test="@tree='float'">
92 <para style="float_right"><font fontName="Helvetica" fontSize="9">
93 <xsl:value-of select="."/>
99 <font fontName="Helvetica" fontSize="9">
100 <xsl:value-of select="."/>
106 <xsl:when test="@para='group'">
108 <xsl:when test="@tree='yes'">
110 <xsl:attribute name="leftIndent"><xsl:value-of select="@space"/></xsl:attribute>
111 <font fontName="Helvetica-bold" fontSize="9">
112 <xsl:value-of select="."/>
116 <xsl:when test="@tree='float'">
117 <para style="float_right"><font fontName="Helvetica-bold" fontSize="9" color="black">
118 <xsl:value-of select="."/>
121 <xsl:when test="@tree='undefined'">
123 <xsl:attribute name="leftIndent">
124 <xsl:value-of select="@space"/>
126 <font fontName="Helvetica-Bold" fontSize="9" color="gray">
127 <xsl:value-of select="."/>
134 <font fontName="Helvetica-bold" fontSize="9" color="black">
135 <xsl:value-of select="."/>
144 <xsl:value-of select="."/>
152 <!-- <xsl:template match="col">
154 <xsl:if test="@tree='yes'">
156 <xsl:when test="@para='yes'">
158 <xsl:attribute name="leftIndent"><xsl:value-of select="@space"/></xsl:attribute>
159 <xsl:value-of select="."/>
164 <xsl:value-of select="."/>
169 <xsl:if test="@tree!='yes'">
171 <xsl:value-of select="."/>