~openerp-commiter/openobject-addons/trunk-extra-addons

« back to all changes in this revision

Viewing changes to auction/report/huissier.xsl

  • Committer: bch
  • Date: 2007-10-08 07:51:57 UTC
  • Revision ID: bch-75f66c7e621801ec61ea98d64ea8d8ef492c2d96
Re-added auction_demo.xml in __terp__.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
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">
3
 
 
4
 
<xsl:template match="/">
5
 
        <xsl:apply-templates select="report"/>
6
 
</xsl:template>
7
 
 
8
 
<xsl:template match="report">
9
 
        <document filename="example_5.pdf">
10
 
        <template pageSize="21cm,29.7cm" leftMargin="1.5cm" rightMargin="1.5cm" topMargin="1.5cm" bottomMargin="1.5cm" title="Bordereau acheteur" author="Generated by Tiny ERP, Fabien Pinckaers" allowSplitting="20">
11
 
                <pageTemplate id="main">
12
 
                        <pageGraphics>
13
 
                                <fill color="(0.4,0.4,0.4)"/>
14
 
                                <stroke color="(0.4,0.4,0.4)"/>
15
 
                                <setFont name="Helvetica" size="8"/>
16
 
                                <drawString x="1.8cm" y="1.4cm"><xsl:value-of select="auction/name"/></drawString>
17
 
                                <drawRightString x="19.2cm" y="1.4cm"><xsl:value-of select="auction/date-au1"/></drawRightString>
18
 
                                <lineMode width="0.2mm"/>
19
 
                                <lines>1.8cm 1.8cm 19.2cm 1.8cm</lines>
20
 
                        </pageGraphics>
21
 
                        <frame id="colmnOne" x1="1.8cm" y1="1.8cm" width="17.4cm" height="26.6cm"/>
22
 
                </pageTemplate>
23
 
        </template>
24
 
        <stylesheet>
25
 
                <paraStyle name="name" fontName="Helvetica-Bold" fontSize="16" alignment="center"/>
26
 
                <blockTableStyle id="result">
27
 
                         <blockValign value="TOP"/>
28
 
                         <blockAlignment value="RIGHT" start="-1,0" stop="-1,-1"/>
29
 
                         <blockFont name="Helvetica-BoldOblique" size="12" start="0,0" stop="-1,0"/>
30
 
                         <blockBackground colorName="grey" start="0,0" stop="-1,0"/>
31
 
                         <blockTextColor colorName="white" start="0,0" stop="-1,0"/>
32
 
                </blockTableStyle>
33
 
        </stylesheet>
34
 
        <story>
35
 
                <blockTable colWidths="1.5cm,1.5cm,6.9cm,5cm,2cm" style="result">
36
 
                <tr>
37
 
                        <td t="1">Num</td>
38
 
                        <td t="1">Ref.</td>
39
 
                        <td t="1">Description</td>
40
 
                        <td t="1">Adjudication</td>
41
 
                        <td t="1">Price</td>
42
 
                </tr>
43
 
                        <xsl:apply-templates select="object"/>
44
 
                </blockTable>
45
 
        </story>
46
 
        </document>
47
 
</xsl:template>
48
 
 
49
 
<xsl:template match="object">
50
 
        <tr>
51
 
                <td><para><xsl:value-of select="number"/></para></td>
52
 
                <td><para><xsl:value-of select="obj_num"/></para></td>
53
 
                <td><para><xsl:value-of select="lot_desc"/></para></td>
54
 
                <td><para><xsl:value-of select="price"/></para></td>
55
 
                <td><xsl:value-of select="obj_price"/></td>
56
 
        </tr>
57
 
</xsl:template>
58
 
 
59
 
</xsl:stylesheet>