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/corporate_defaults.xsl"/>
5 <xsl:import href="../../base/report/rml_template.xsl"/>
7 <xsl:template match="/">
8 <xsl:call-template name="rml"/>
11 <xsl:template name="stylesheet">
12 <paraStyle name="login-title" fontName="Helvetica" fontSize="12"/>
13 <paraStyle name="login" fontName="Helvetica-Bold" fontSize="16"/>
15 <blockTableStyle id="objects">
16 <blockFont name="Helvetica-BoldOblique" size="12" start="0,0" stop="-1,0"/>
17 <blockValign value="TOP"/>
18 <blockAlignment value="RIGHT" start="-1,0" stop="-1,-1"/>
19 <lineStyle kind="LINEBELOW" start="0,0" stop="-1,0"/>
22 <blockTableStyle id="object-totals">
23 <blockValign value="TOP"/>
24 <blockAlignment value="RIGHT"/>
25 <lineStyle kind="LINEABOVE" start="-1,0" stop="-1,0"/>
26 <lineStyle kind="LINEABOVE" start="-1,-1" stop="-1,-1"/>
30 <xsl:template name="story">
31 <xsl:apply-templates select="borderform-list"/>
34 <xsl:template match="borderform-list">
35 <xsl:apply-templates select="borderform">
36 <xsl:sort order="ascending" select="client_info/name"/>
37 </xsl:apply-templates>
40 <xsl:template match="client_info">
43 <xsl:value-of select="title" />
44 <xsl:text> </xsl:text>
45 <xsl:value-of select="name"/>
48 <para><xsl:value-of select="street"/></para>
49 <para><xsl:value-of select="street2"/></para>
51 <xsl:value-of select="zip"/>
52 <xsl:text> </xsl:text>
53 <xsl:value-of select="city"/>
55 <!-- <para><xsl:value-of select="country"/></para>-->
58 <xsl:template match="borderform">
59 <xsl:apply-templates select="client_info"/>
61 <setNextTemplate name="other_pages"/>
64 <para style="login-title" t="1">Plate Number:</para>
65 <para style="login"><xsl:value-of select="login"/></para>
67 <spacer length="1cm"/>
70 <b t="1">Document</b>: <xsl:text t="1">Buyer form</xsl:text>
72 <b t="1">Auction</b>: <xsl:value-of select="title"/>
75 <xsl:if test="client_info">
77 <b t="1">Customer Contact</b>:
78 <xsl:value-of select="client_info/phone"/>
79 <xsl:if test="number(string-length(client_info/mobile) > 0) + number(string-length(client_info/phone) > 0) = 2">
80 <xsl:text> - </xsl:text>
82 <xsl:value-of select="client_info/mobile"/>
84 <b t="1">Customer Reference</b>: <xsl:value-of select="client_info/ref"/>
88 <spacer length="1cm"/>
90 <xsl:apply-templates select="objects"/>
92 <setNextTemplate name="first_page"/>
96 <xsl:template match="objects">
97 <blockTable colWidths="3.1cm,1.8cm,9.6cm,1.5cm,2.2cm" style="objects">
100 <td t="1">Cat. N.</td>
101 <td t="1">Description</td>
103 <td t="1">Adj.(EUR)</td>
105 <xsl:apply-templates select="object"/>
107 <condPageBreak height="3.2cm"/>
108 <blockTable colWidths="3.1cm,1.8cm,9.6cm,1.5cm,2.2cm" style="object-totals">
113 <td t="1">Subtotal:</td>
114 <td><xsl:value-of select="format-number(sum(object[price != '']/price), '#,##0.00')"/></td>
116 <xsl:apply-templates select="cost"/>
121 <td t="1">Total:</td>
122 <td><xsl:value-of select="format-number(sum(object[price != '']/price) + sum(cost/amount), '#,##0.00')"/></td>
127 <xsl:template match="cost">
132 <td><xsl:value-of select="name"/>:</td>
133 <td><xsl:value-of select="format-number(amount, '#,##0.00')"/></td>
137 <xsl:template match="object">
140 <xsl:if test="image">
141 <image width="2.5cm" height="2.2cm">
142 <xsl:attribute name="name"><xsl:value-of select="image"/></xsl:attribute>
146 <td><xsl:value-of select="ref"/></td>
149 <b><xsl:value-of select="title"/><xsl:text>. </xsl:text></b>
150 <xsl:value-of select="desc"/>
153 <td><xsl:if test="state='paid'"><xsl:text>X</xsl:text></xsl:if></td>
155 <xsl:if test="price!=''">
156 <xsl:value-of select="format-number(price, '#,##0.00')"/>