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" xmlns:date="http://exslt.org/dates-and-times"extension-element-prefixes="date">
5
<xsl:template match="report">
9
<!-- <pageTemplate id="first">-->
10
<!-- <pageGraphics>-->
11
<!-- <stroke color="(0.6,0.3,0.1)"/>-->
12
<!-- <fill color="(0.6,0.3,0.1)"/>-->
14
<image x="7cm" y="25cm" file="/home/tiny/terp/4.2/server/bin/addons/auction/report/images/aeko_logo.jpg"/>
15
<image x="7cm" y="25cm" file="/home/pinky/code/terp/branches/extra_addons/trunk/auction/report/images/flagey_logo.jpg"/>
16
<lines>1cm 3.0cm 20cm 3.0cm</lines>
17
<setFont name="Helvetica" size="15"/>
18
<drawCentredString x="105mm" y="2.2cm">Hotel des ventes Flagey</drawCentredString>
19
<setFont name="Helvetica" size="11"/>
20
<drawCentredString x="105mm" y="1.6cm">Rue du Nid, 4 - B-1050 Bruxelles - Tel: 02/644.97.67</drawCentredString>
21
<drawCentredString x="105mm" y="1.0cm">Web: Flagey.com - Mail: info@flagey.com - Fax: 02.646.32.35</drawCentredString>
24
<fill color="(0.2,0.2,0.2)"/>
25
<stroke color="(0.2,0.2,0.2)"/>
27
<!-- </pageGraphics>-->
28
<!-- <frame id="column" x1="2.0cm" y1="6cm" width="18cm" height="18cm"/>-->
29
<!-- </pageTemplate>-->
30
<pageTemplate id="first">
32
<!-- <image x="1.0cm" y="27.3cm" file="/home/tiny/terp/4.2/server/bin/addons/auction/report/images/flagey_head.png"/>-->
33
- <image x="1.0cm" y="27.3cm" file="/home/pinky/code/terp/branches/extra_addons/trunk/auction/report/images/flagey_logo.jpg"/>
34
<drawRightString x="19.0cm" y="27.6cm"> Vente antiquitée le <xsl:value-of select="date:day-name(catalog/AuctionDate1)"/>  <xsl:value-of select="date:day-in-month(catalog/AuctionDate1)"/> <xsl:value-of select="date:month-name(catalog/AuctionDate1)"/>  <xsl:value-of select="date:year(catalog/AuctionDate1)"/></drawRightString>-->
35
<lineMode width="1mm"/>
36
<setFont name="Helvetica" size="26"/>
37
<!-- <drawString x="10mm" y="27.8cm">Flagey.com</drawString>-->
38
<fill color="(0.2,0.2,0.2)"/>
39
<stroke color="#2b24b6"/>
40
<lineMode width="0.5mm"/>
41
<lines>1cm 1.6cm 20cm 1.6cm</lines>
42
<lines>1.0cm 27.3cm 20cm 27.3cm</lines>
44
<setFont name="Helvetica" size="12"/>
45
<drawString x="10mm" y="1.0cm">www.flagey.com</drawString>
46
<drawCentredString x="105mm" y="1.0cm">Tel: 02.644.97.67 - Fax: 02.646.32.35</drawCentredString>
47
<drawRightString x="200mm" y="1.0cm">info@flagey.com</drawRightString>
49
<frame id="column" x1="1cm" y1="1.5cm" width="9.4cm" height="25.5cm"/>
50
<frame id="column" x1="10.8cm" y1="1.5cm" width="9.4cm" height="25.5cm"/>
54
<paraStyle name="slogan1" fontName="Times-Roman" fontSize="11" alignment="left" spaceBefore="0.0" spaceAfter="0.0"/>
55
<paraStyle name="slogan2" fontName="Times-Roman" fontSize="9" alignment="right" spaceBefore="0.0" spaceAfter="0.0"/>
56
<paraStyle name="slogan5" alignment="right" />
57
<paraStyle name="slogan" fontName="Times New Roman-Italic" fontSize="11" alignment="left" spaceBefore="0.0" spaceAfter="0.0"/>
58
<paraStyle name="slogan3" xml:lang="en-fr" fontName="Times-Roman" fontSize="16" alignment="center" spaceAfter="0.5" />
59
<paraStyle name="slogan4" fontName="Helvetica" fontSize="10" alignment="right" spaceBefore="0.0"/>
60
<paraStyle name="footnote" fontName="Helvetica" fontSize="10" alignment="center" />
61
<paraStyle name="note" fontName="Helvetica" fontSize="8" leftIndent="3mm"/>
62
<paraStyle name="homehead" fontName="Helvetica" fontSize="12" alignment="center"/>
63
<paraStyle name="artist" fontName="Helvetica-Bold"/>
64
<paraStyle name="prodtitle" fontName="Helvetica-BoldOblique" fontSize="8"/>
65
<blockTableStyle id="infos">
66
<blockValign value="TOP"/>
67
<blockTopPadding value="0"/>
68
<blockBottomPadding value="0"/>
70
<blockTableStyle id="imagestyle">
72
<blockHalign value="right"/>
73
<blockAlignment value="RIGHT" start="-1,0" stop="-1,-1"/>
78
<blockTableStyle id="product1">
79
<blockValign value="TOP"/>
80
<!-- <blockAlignment value="RIGHT" start="1,0" stop="-1,0"/>-->
81
<blockAlignment value="RIGHT"/>
83
<blockTopPadding legnth="0" start="0,0" stop="0,-1" />
84
<blockLeftPadding legnth="0" start="0,0" stop="0,-1" />
87
<blockAlignment value="CENTER" start="0,0" stop="0,-1"/>
89
<blockTableStyle id="donation">
90
<blockFont name="Helvetica-BoldOblique" size="24" start="0,0" stop="-1,0"/>
91
<blockAlignment value="RIGHT" start="-1,0" stop="-1,-1"/>
92
<lineStyle kind="LINEBELOW" start="0,0" stop="-1,0"/>
98
<!--<setNextTemplate name="others"/>-->
100
<xsl:apply-templates select="catalog/products"/>
106
<xsl:template match="products">
107
<xsl:apply-templates select="product">
108
<xsl:sort order="ascending" data-type="number" select="infos/lot_num"/>
109
</xsl:apply-templates>
113
<xsl:template match="product">
114
<!-- <xsl:if test="newpage">-->
115
<!-- <condPageBreak height="20cm"/>-->
119
<xsl:when test="string-length(infos/photo) >2 or string-length(infos/photo_small) >2 ">
121
<blockTable style="product1" colWidths="6.5cm,2.5cm" >
125
<para style="slogan1">
126
<xpre><b><xsl:value-of select="infos/lot_num"/>  -  </b> <xsl:value-of select="infos/info"/>
128
<spacer length="2.0mm"/>
129
<xsl:if test="lot_est1>0">
130
<para style="slogan2">
132
Est. <i> <xsl:value-of select="format-number(lot_est1, '#,##0.00')"/>/ <xsl:value-of select="format-number(lot_est2, '#,##0.00')"/> Euro</i></xpre></para>
137
<xsl:if test="infos/photo_small" >
139
<image x="0" y="0" height="2.5cm" width="2cm" >
141
<xsl:value-of select="infos/photo_small"/>
151
<!-- photo on the right-->
153
<blockTable style="product1" colWidths="9cm">
156
<para style="slogan1">
158
<b><xsl:value-of select="infos/lot_num"/> -  </b> <xsl:value-of select="infos/info"/>
160
<spacer length="2.0mm"/>
161
<xsl:if test="lot_est1>0">
162
<para style="slogan2">
164
Est. <i><xsl:value-of select="format-number(lot_est1, '#,##0.00')"/>/ <xsl:value-of select="format-number(lot_est2, '#,##0.00')"/> Euro