1 <?xml version="1.0" encoding="iso-8859-1"?>
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 <xsl:import href="corporate_defaults.xsl"/>
4 <xsl:import href="rml_template.xsl"/>
6 <xsl:template match="/">
7 <xsl:call-template name="rml"/>
10 <xsl:template name="stylesheet">
11 <paraStyle name="date" fontName="Helvetica" fontSize="12" alignment="RIGHT"/>
12 <paraStyle name="text" fontName="Helvetica" fontSize="12" alignment="JUSTIFY"/>
13 <paraStyle name="name" fontName="Helvetica" fontSize="11"/>
14 <paraStyle name="signature" fontName="Helvetica" fontSize="12" alignment="RIGHT"/>
16 <blockTableStyle id="products">
17 <blockFont name="Helvetica-BoldOblique" size="12" start="0,0" stop="-1,0"/>
18 <blockBackground colorName="grey" start="0,0" stop="-1,0"/>
19 <blockTextColor colorName="white" start="0,0" stop="-1,0"/>
20 <blockValign value="TOP"/>
21 <blockAlignment value="RIGHT" start="-1,0" stop="-1,-1"/>
22 <lineStyle kind="LINEBELOW" colorName="black" start="0,0" stop="-1,0"/>
26 <xsl:template name="first_page_frames">
27 <frame id="address" x1="11cm" y1="21.5cm" width="6cm" height="4cm"/>
28 <frame id="main" x1="2cm" y1="2.5cm" width="17.0cm" height="19cm"/>
31 <!-- <xsl:template name="other_pages_frames">-->
32 <!-- <frame id="main" x1="2cm" y1="2.5cm" width="17.0cm" height="23cm"/>-->
33 <!-- </xsl:template>-->
35 <xsl:template name="story">
36 <xsl:apply-templates select="deposit-form"/>
41 <xsl:template match="deposit-form">
42 <xsl:apply-templates select="deposit"/>
47 <xsl:template match="deposit">
48 <xsl:apply-templates select="deposit-infos"/>
51 <!-- <setNextTemplate name="other_pages"/>-->
53 <para style="date">Bruxelles, le <xsl:value-of select="//date"/></para>
55 <spacer length="2cm" width="1mm"/>
57 <para style="text" t="1">Madame, Monsieur</para>
59 <spacer length="1cm" width="1mm"/>
61 <para style="text"><xsl:text t="1">
62 Veuillez trouver - ci-dessous - la liste des articles que vous avez déposés pour la vente publique du </xsl:text><xsl:value-of select="//auction-date"/>.
65 <spacer length="3mm" width="1mm"/>
67 <para style="text" t="1">
68 Les lots que vous avez déposés mais qui ne sont pas marqués ci-dessous passeront dans une vente prochaine.</para>
70 <spacer length="3mm" width="1mm"/>
72 <para style="text" t="1">
73 En restant à votre disposition, je vous prie d'agréer, Madame, Monsieur, l'assurance de mes sentiments distingués.
76 <spacer length="1cm" width="1mm"/>
78 <para style="signature"><xsl:value-of select="$signature"/></para>
80 <spacer length="1cm" width="1mm"/>
82 <xsl:apply-templates select="deposit-lines"/>
84 <spacer length="0.5cm" width="1mm"/>
86 <!-- <setNextTemplate name="first_page"/>-->
90 <xsl:template match="deposit-infos">
91 <xsl:apply-templates select="deposit-to"/>
94 <xsl:template match="deposit-to">
95 <para style="name"><xsl:value-of select="corporation/title"/><xsl:text> </xsl:text><xsl:value-of select="corporation/name"/></para>
96 <para><xsl:value-of select="person/title"/><xsl:text> </xsl:text><xsl:value-of select="person/name"/></para>
97 <para><xsl:value-of select="person/street"/></para>
98 <para><xsl:value-of select="person/street2"/></para>
99 <para><xsl:value-of select="person/postcode"/><xsl:text> </xsl:text><xsl:value-of select="person/city"/></para>
100 <para><xsl:value-of select="person/state"/></para>
101 <para><xsl:value-of select="person/country"/></para>
102 <xsl:if test="corporation/vat != ''">
103 <spacer length="0.4cm" width="1mm"/>
104 <para><b t="1">VAT</b>: <xsl:value-of select="corporation/vat"/></para>
108 <xsl:template match="deposit-lines">
109 <blockTable colWidths="2cm,4cm,2cm,10cm,2cm" style="products" repeatRows="1">
111 <td t="1">Cat. N.</td>
112 <td t="1">Deposit Inventory</td>
113 <td t="1">List N.</td>
114 <td t="1">Description</td>
115 <td t="1">Estimate</td>
117 <xsl:for-each select="deposit-line">
118 <xsl:sort order="ascending" data-type="number" select="lot-num"/>
120 <td><para><xsl:value-of select="obj-num"/></para></td>
121 <td><para><xsl:value-of select="bord-vnd-id"/></para></td>
122 <td><para><xsl:value-of select="lot-num"/></para></td>
125 <xsl:if test="artist != ''">
126 <b><xsl:value-of select="artist"/></b><xsl:text>: </xsl:text>
128 <xsl:value-of select="name"/>
132 <xsl:value-of select="round(lot-est1)"/>
133 <xsl:text> / </xsl:text>
134 <xsl:value-of select="round(lot-est2)"/>