[fix] problem in o2m
[odoo/odoo.git] / addons / auction / report / artists.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2
3
4 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
5 <xsl:template match="/">
6                         <xsl:apply-templates select="artists"/>
7 </xsl:template>
8
9
10 <xsl:template match="artists">
11
12         <document>
13                 <template leftMargin="2.0cm" rightMargin="2.0cm" topMargin="2.0cm" bottomMargin="2.0cm" title="Bids report" author="Generated by Open ERP, Fabien Pinckaers">
14
15
16                         <pageTemplate id="all">
17                                 <pageGraphics/>
18                                         <frame id="principal" x1="1.0cm" y1="2.0cm" width="19.0cm" height="26.0cm" alignment="center"/>
19                         </pageTemplate>
20                 </template>
21
22                 <stylesheet>
23                 <paraStyle name="spacebefore" alignment="center" fontName="Courier" fontSize="12" spaceBefore="0" spaceAfter="0"/>
24                 <paraStyle name="spaceafter" fontName="Courier" fontSize="12" spaceBefore="0" spaceAfter="0"/>
25
26                 <blockTableStyle id="artist">
27                         <blockLeftPadding  start="0,0" stop="-1,-1" length="5mm"/>
28                         <blockRightPadding start="0,0" stop="-1,-1" length="5mm"/>
29                         <blockTopPadding start="0,0" stop="-1,0" length="5mm"/>
30                         <blockBottomPadding start="0,0" stop="-1,0" length="2mm"/>
31                         <blockBottomPadding start="0,-1" stop="-1,-1" length="5mm"/>
32
33                         <blockValign value="TOP"/>
34                         <blockAlignment value="LEFT"/>
35                         <lineStyle kind="LINEABOVE" colorName="black" start="0,0" stop="-1,0"/>
36                         <lineStyle kind="LINEBELOW" colorName="black" start="0,-1" stop="-1,-1"/>
37                         <lineStyle kind="LINEBEFORE" colorName="black" start="0,0" stop="-1,-1"/>
38                         <lineStyle kind="LINEBEFORE" colorName="black" start="0,0" stop="0,-1"/>
39                         <lineStyle kind="LINEAFTER" colorName="black" start="-1,0" stop="-1,-1"/>
40                 </blockTableStyle>
41                 </stylesheet>
42                 <story>
43
44         <xsl:apply-templates select="artist"/>
45         </story>
46         </document>
47 </xsl:template>
48
49
50 <xsl:template match="artist">
51
52                         <blockTable repeatRows="1" style="artist" colWidths="18.0cm">
53                                 <tr>
54                                         <td>
55                                                 <para style="spacebefore"><b><xsl:value-of select="name"/><xsl:text> (</xsl:text><xsl:value-of select="birth_death_dates"/><xsl:text>)</xsl:text></b></para>
56                                         </td>
57                                 </tr>
58
59                                 <tr>
60                                         <td>
61                                                 <para style="spaceafter"><xsl:value-of select="biography"/></para>
62                                         </td>
63                                 </tr>
64                         </blockTable>
65
66                         <blockTable rowHeights="2cm" colWidths="18.0cm">
67                                 <tr>
68                                         <td>
69                                         </td>
70                                 </tr>
71                         </blockTable>
72 </xsl:template>
73
74 </xsl:stylesheet>