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/corporate_defaults.xsl"/>
6 <xsl:template match="/">
7 <xsl:apply-templates select="report"/>
10 <xsl:template match="/">
11 <document filename="example_5.pdf">
13 <pageTemplate id="main">
14 <frame id="mainbox" x1="2cm" y1="2cm" width="19cm" height="24cm"/>
23 <paraStyle name="section" fontName="Helvetica-Bold" fontSize="16" spaceAfter="0.5cm" spaceBefore="1.5cm"/>
26 <spacer length="2cm"/>
27 <para t="1">Date printing: <xsl:value-of select="report/date"/></para>
28 <para style="section" t="1">
31 <xsl:apply-templates select="report/auction"/>
32 <para style="section" t="1">
35 <xsl:apply-templates select="report/objects"/>
36 <para style="section" t="1">
39 <xsl:apply-templates select="report/buyer"/>
40 <para style="section" t="1">
43 <xsl:apply-templates select="report/seller"/>
48 <xsl:template match="report/buyer">
49 <blockTable colWidths="4cm,14.9cm">
51 <td t="1"># of buyers:</td>
52 <td><xsl:value-of select="buy_nbr"/></td>
54 <td t="1"># of paid items:</td>
55 <td><xsl:value-of select="paid_nbr"/></td>
57 <td t="1"># commissions:</td>
58 <td><xsl:value-of select="comm_nbr"/></td>
60 <td t="1"># of items taken away:</td>
61 <td><xsl:value-of select="taken_nbr"/></td>
63 <td t="1">Credit:</td>
64 <td><xsl:value-of select="credit"/> EUR</td>
67 <td><xsl:value-of select="paid"/> EUR</td>
72 <xsl:template match="report/auction">
73 <blockTable colWidths="4cm,14.9cm">
75 <td t="1">Auction:</td>
76 <td><xsl:value-of select="title"/></td>
79 <td><xsl:value-of select="date"/></td>
84 <xsl:template match="/report/seller">
85 <blockTable colWidths="4cm,14.9cm">
87 <td t="1"># of sellers:</td>
88 <td><xsl:value-of select="sell_nbr"/></td>
91 <td><xsl:value-of select="debit"/> EUR</td>
96 <xsl:template match="/report/objects">
97 <blockTable colWidths="4cm,14.9cm">
99 <td t="1"># of items:</td>
100 <td><xsl:value-of select="obj_nbr"/></td>
102 <td t="1">Min Estimate:</td>
103 <td><xsl:value-of select="est_min"/></td>
105 <td t="1">Max Estimate:</td>
106 <td><xsl:value-of select="est_max"/></td>
108 <td t="1"># of unsold items:</td>
109 <td><xsl:value-of select="unsold"/></td>
111 <td t="1">Adjudication:</td>
112 <td><xsl:value-of select="obj_price"/> EUR</td>