<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes"/>

  <xsl:template match="/DATA">
    <office:document-content 
      xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
      xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
      xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
      xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
      xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
      xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
      xmlns:xlink="http://www.w3.org/1999/xlink" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" 
      xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
      xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
      xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
      xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
      xmlns:math="http://www.w3.org/1998/Math/MathML" 
      xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
      xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
      xmlns:ooo="http://openoffice.org/2004/office" 
      xmlns:ooow="http://openoffice.org/2004/writer" 
      xmlns:oooc="http://openoffice.org/2004/calc" 
      xmlns:dom="http://www.w3.org/2001/xml-events" 
      xmlns:xforms="http://www.w3.org/2002/xforms" 
      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      office:version="1.0">
      <office:font-face-decls>
        <style:font-face style:name="Arial" svg:font-family="Arial"/>
        <style:font-face style:name="Tahoma1" svg:font-family="Tahoma"/>
        <style:font-face style:name="Verdana" svg:font-family="Verdana, sans-serif"/>
        <style:font-face style:name="Arial Unicode MS" svg:font-family="&apos;Arial Unicode MS&apos;" style:font-pitch="variable"/>
        <style:font-face style:name="HG Mincho Light J" svg:font-family="&apos;HG Mincho Light J&apos;" style:font-pitch="variable"/>
        <style:font-face style:name="Thorndale" svg:font-family="Thorndale" style:font-family-generic="roman" style:font-pitch="variable"/>
        <style:font-face style:name="Albany" svg:font-family="Albany" style:font-family-generic="swiss" style:font-pitch="variable"/>
        <style:font-face style:name="Lucida Sans Unicode" svg:font-family="&apos;Lucida Sans Unicode&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
        <style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-family-generic="system" style:font-pitch="variable"/>
      </office:font-face-decls>
      <office:automatic-styles>
        <style:style style:name="Table1" style:family="table" style:master-page-name="HTML">
          <style:table-properties style:width="7.0861in" style:rel-width="100%" style:page-number="0" table:align="left"/>
        </style:style>
        <style:style style:name="Table1.A" style:family="table-column">
          <style:table-column-properties style:column-width="0.0174in" style:rel-column-width="25*"/>
        </style:style>
        <style:style style:name="Table1.B" style:family="table-column">
          <style:table-column-properties style:column-width="2.8576in" style:rel-column-width="4115*"/>
        </style:style>
        <style:style style:name="Table1.C" style:family="table-column">
          <style:table-column-properties style:column-width="4.1931in" style:rel-column-width="6038*"/>
        </style:style>
        <style:style style:name="Table1.D" style:family="table-column">
          <style:table-column-properties style:column-width="0.0181in" style:rel-column-width="26*"/>
        </style:style>
        <style:style style:name="Table1.B1" style:family="table-cell">
          <style:table-cell-properties style:vertical-align="middle"/>
        </style:style>
        <style:style style:name="Table1.B2" style:family="table-cell">
          <style:table-cell-properties style:vertical-align="middle" fo:padding="0.0208in" fo:border="none" />
        </style:style>
        <style:style style:name="Table1.B3.1" style:family="table-column">
          <style:table-column-properties />
        </style:style>
        <style:style style:name="Table1.B3.2" style:family="table-column">
          <style:table-column-properties />
        </style:style>
        <style:style style:name="Table1.B3.1.2" style:family="table-cell">
          <style:table-cell-properties fo:padding="0.0208in" fo:border="none"/>
        </style:style>
        <style:style style:name="Table1.B3.1.3" style:family="table-cell">
          <style:table-cell-properties fo:padding="0.0208in" fo:border="none" style:column-width="0.0181in" style:rel-column-width="26*"/>
        </style:style>
        <style:style style:name="Table1.B5.1" style:family="table-column">
          <style:table-column-properties />
        </style:style>
        <style:style style:name="Table1.B5.2" style:family="table-column">
          <style:table-column-properties style:column-width="1.7014in" style:rel-column-width="2450*"/>
        </style:style>
        <style:style style:name="Table1.B5.3" style:family="table-column">
          <style:table-column-properties style:column-width="0.4200in" style:rel-column-width="609*"/>
        </style:style>
        <style:style style:name="Table1.B5.4" style:family="table-column">
          <style:table-column-properties style:column-width="0.7799in" style:rel-column-width="1123*"/>
        </style:style>
        <style:style style:name="Table1.B5.5" style:family="table-column">
          <style:table-column-properties style:column-width="0.7799in" style:rel-column-width="1123*"/>
        </style:style>
        <style:style style:name="Table1.B5.6" style:family="table-column">
          <style:table-column-properties style:column-width="0.9451in" style:rel-column-width="1361*"/>
        </style:style>
        <style:style style:name="Table1.B5.7" style:family="table-column">
          <style:table-column-properties style:column-width="0.9375in" style:rel-column-width="1350*"/>
        </style:style>
        <style:style style:name="Table1.B5.8" style:family="table-column">
          <style:table-column-properties style:column-width="1.0257in" style:rel-column-width="1477*"/>
        </style:style>
        <style:style style:name="Table1.B5.9" style:family="table-column">
          <style:table-column-properties style:column-width="0.025in" style:rel-column-width="36*"/>
        </style:style>
        <style:style style:name="Table1.B5.1" style:family="table-row">
          <style:table-row-properties fo:background-color="#d7d6cc">
            <style:background-image/>
          </style:table-row-properties>
        </style:style>
        <style:style style:name="Table1.B5.2" style:family="table-row">
          <style:table-row-properties fo:background-color="#f2f1ee">
            <style:background-image/>
          </style:table-row-properties>
        </style:style>
        <style:style style:name="Table1.B5.6.3.1" style:family="table-column">
          <style:table-column-properties style:column-width="1.8799in" style:rel-column-width="2707*"/>
        </style:style>
        <style:style style:name="Table1.B5.6.3.2" style:family="table-column">
          <style:table-column-properties style:column-width="1.0278in" style:rel-column-width="1480*"/>
        </style:style>
        <style:style style:name="Table2" style:family="table">
          <style:table-properties style:width="7.009in" table:align="margins"/>
        </style:style>
        <style:style style:name="Table2.A" style:family="table-column">
          <style:table-column-properties style:column-width="3.5049in" style:rel-column-width="32767*"/>
        </style:style>
        <style:style style:name="Table2.A1" style:family="table-cell">
          <style:table-cell-properties fo:padding="0.0382in" />
        </style:style>
        <style:style style:name="Table2.B1" style:family="table-cell">
          <style:table-cell-properties fo:padding="0.0382in" fo:border="none"/>
        </style:style>
        <style:style style:name="Table2.A2" style:family="table-cell">
          <style:table-cell-properties fo:padding="0.0382in" fo:border="none"/>
        </style:style>
        <style:style style:name="Table2.B2" style:family="table-cell">
          <style:table-cell-properties fo:padding="0.0382in" fo:border="none"/>
        </style:style>
        <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:text-properties fo:font-size="2pt" fo:font-weight="bold" style:font-size-asian="2pt" style:font-weight-asian="bold" style:font-size-complex="2pt" style:font-weight-complex="bold"/>
        </style:style>
        <style:style style:name="P2" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:text-properties fo:font-size="2pt" style:font-size-asian="2pt" style:font-size-complex="2pt"/>
        </style:style>
        <style:style style:name="P3" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:text-properties fo:font-weight="bold"/>
        </style:style>
        <style:style style:name="P4" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
        </style:style>
        <style:style style:name="P5" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:text-properties fo:color="#333333"/>
        </style:style>
        <style:style style:name="P6" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:text-properties fo:color="#333333" fo:font-weight="bold"/>
        </style:style>
        <style:style style:name="P7" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
          <style:text-properties fo:color="#333333" fo:font-weight="bold"/>
        </style:style>
        <style:style style:name="P8" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
          <style:text-properties fo:color="#333333"/>
        </style:style>
        
        <style:style style:name="P8a" style:family="paragraph" style:parent-style-name="Text_20_body">
          <style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
          <style:text-properties fo:font-weight="normal" fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
        </style:style>
        <style:style style:name="P8b" style:family="paragraph" style:parent-style-name="Text_20_body">
          <style:paragraph-properties fo:margin-left="0.19in" style:justify-single-word="false"/>
          <style:text-properties fo:font-weight="normal" fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
        </style:style>
        
        <style:style style:name="P9" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
        </style:style>
        <style:style style:name="P10" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.1965in" fo:margin-left="0.19in"/>
          <style:text-properties fo:font-variant="normal" fo:text-transform="none" fo:color="#333333" style:font-name="Verdana" fo:font-size="8.25pt" fo:font-style="normal" fo:font-weight="normal" style:font-name-asian="Verdana" style:font-size-asian="8.25pt" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-name-complex="Verdana" style:font-size-complex="8.25pt" style:font-style-complex="normal" style:font-weight-complex="normal"/>
        </style:style>
        <style:style style:name="P11" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:text-properties fo:font-weight="bold"/>
        </style:style>
        <style:style style:name="P12" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:text-properties fo:font-size="8.19999980926514pt" style:font-size-asian="8.19999980926514pt" style:font-size-complex="8.19999980926514pt"/>
        </style:style>
        <style:style style:name="P13" style:family="paragraph" style:parent-style-name="Table_20_Contents">
          <style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
          <style:text-properties style:text-line-through-style="none"/>
        </style:style>
        <style:style style:name="T1" style:family="text">
          <style:text-properties fo:font-size="11pt" style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color" fo:font-weight="bold" style:font-size-asian="11pt" style:font-weight-asian="bold" style:font-size-complex="11pt" style:font-weight-complex="bold"/>
        </style:style>
        <style:style style:name="T2" style:family="text">
          <style:text-properties fo:font-size="12pt" style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color" fo:font-weight="bold" style:font-size-asian="12pt" style:font-weight-asian="bold" style:font-size-complex="12pt" style:font-weight-complex="bold"/>
        </style:style>
        <style:style style:name="T3" style:family="text">
          <style:text-properties style:text-underline-style="none"/>
        </style:style>
      </office:automatic-styles>
      <office:body>
        <office:text>
          <office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
          <text:sequence-decls>
            <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
            <text:sequence-decl text:display-outline-level="0" text:name="Table"/>
            <text:sequence-decl text:display-outline-level="0" text:name="Text"/>
            <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
          </text:sequence-decls>
          <table:table table:name="Table1" table:style-name="Table1">
            <table:table-column table:style-name="Table1.A"/>
            <table:table-column table:style-name="Table1.B"/>
            <table:table-column table:style-name="Table1.C"/>
            <table:table-column table:style-name="Table1.D"/>
            <table:table-row>
              <table:table-cell office:value-type="string">
                <text:p text:style-name="P1"/>
              </table:table-cell>
              <table:table-cell table:style-name="Table1.B1" table:number-columns-spanned="2" office:value-type="string">
                <text:p text:style-name="P4">
                  <office:annotation>
                    <dc:date>2007-03-05T00:00:00</dc:date>
                    <text:p>&lt;!-- body_text //--&gt;</text:p>
                  </office:annotation>Thierry Schork 
                </text:p>
              </table:table-cell>
              <table:covered-table-cell/>
              <table:table-cell office:value-type="string">
                <text:p text:style-name="P2"/>
              </table:table-cell>
            </table:table-row>
            <table:table-row>
              <table:table-cell office:value-type="string">
                <text:p text:style-name="P2"/>
              </table:table-cell>
              <table:table-cell table:style-name="Table1.B2" table:number-columns-spanned="2" office:value-type="string">
                <table:table table:name="Table2" table:style-name="Table2">
                  <table:table-column table:style-name="Table2.A" table:number-columns-repeated="2"/>
                  <table:table-row>
                    <table:table-cell table:style-name="Table2.A1" office:value-type="string">
                      <text:p text:style-name="P3">VENDU A:</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.B1" office:value-type="string">
                      <text:p text:style-name="P3">LIVRE A:</text:p>
                    </table:table-cell>
                  </table:table-row>
                  <table:table-row>
                    <table:table-cell table:style-name="Table2.B2" office:value-type="string">
                      <text:p text:style-name="Table_20_Contents">
                        <xsl:for-each select="/DATA/adresses/adress">
                          <xsl:choose>
                            <xsl:when test="@type='customer'">
                              <xsl:value-of select="name"/>
                              <text:line-break/>
                              <xsl:value-of select="adress"/>
                              <text:line-break/>
                              <xsl:value-of select="cp"/> 
                              <xsl:text>&#160;</xsl:text> 
                              <xsl:value-of select="city"/>
                              <text:line-break/>
                              <xsl:value-of select="country"/>
                              <text:line-break/>
                            </xsl:when>
                          </xsl:choose>
                        </xsl:for-each>
                      </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A2" office:value-type="string">
                      <text:p text:style-name="Table_20_Contents">
                        <xsl:for-each select="/DATA/adresses/adress">
                          <xsl:choose>
                            <xsl:when test="@type='delivery'">
                              <xsl:value-of select="name"/>
                              <text:line-break/>
                              <xsl:value-of select="adress"/>
                              <text:line-break/>
                              <xsl:value-of select="cp"/> 
                              <xsl:text>&#160;</xsl:text> 
                              <xsl:value-of select="city"/>
                              <text:line-break/>
                              <xsl:value-of select="country"/>
                              <text:line-break/>
                            </xsl:when>
                          </xsl:choose>
                        </xsl:for-each>
                      </text:p>
                    </table:table-cell>
                  </table:table-row>
                </table:table>
                <text:p text:style-name="Table_20_Contents"/>
                <text:p text:style-name="P3">Facture No. 
                  <xsl:value-of select="/DATA/order/@id"/>
                </text:p>
              </table:table-cell>
              <table:covered-table-cell/>
              <table:table-cell office:value-type="string">
                <text:p text:style-name="P2"/>
              </table:table-cell>
            </table:table-row>
            <table:table-row>
              <table:table-cell office:value-type="string">
                <text:p text:style-name="P2"/>
              </table:table-cell>
              <table:table-cell>
                <table:table table:is-sub-table="true">
                  <table:table-column table:style-name="Table1.B3.1"/>
                  <table:table-column table:style-name="Table1.B3.2"/>
                  <table:table-row>
                    <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                      <text:p text:style-name="Table_20_Contents">
                        <text:span text:style-name="Strong_20_Emphasis">Date de Commande:</text:span>
                      </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                      <text:p text:style-name="Table_20_Contents">
                        <xsl:value-of select="/DATA/order/date/literal/europe"/>
                      </text:p>
                    </table:table-cell>
                  </table:table-row>
                  <table:table-row>
                    <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                      <text:p text:style-name="P3">Mode de Paiement:</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                      <text:p text:style-name="Table_20_Contents">
                        <xsl:value-of select="/DATA/order/payment"/>
                      </text:p>
                    </table:table-cell>
                  </table:table-row>
                </table:table>
              </table:table-cell>
              <xsl:choose>
                <xsl:when test="/DATA/order/payment='Chèque/Virement Bancaire'">
                  <table:table-cell table:number-columns-spanned="2" office:value-type="string">
                    <text:p text:style-name="P10">
                      <text:span text:style-name="T1">Virement banquaire:</text:span>
                      <text:line-break/>Banque xxxxxxxxxxxxx
                      <text:line-break/>Rue xxxxxxxxxxxxxxx
                      <text:line-break/>Swift: RAIFCHxx
                      <text:line-break/>Compte num.: 12345678.90
                      <text:line-break/>
                      <text:line-break/>
                      <text:span text:style-name="T2">
                        <text:line-break/>
                      </text:span>
                    </text:p>
                  </table:table-cell>
                </xsl:when>
                <xsl:otherwise>
                  <table:table-cell table:number-columns-spanned="2" office:value-type="string">
                    <text:p text:style-name="P10">
                      
                    </text:p>
                  </table:table-cell>
                </xsl:otherwise>
              </xsl:choose>
              
              
              <table:covered-table-cell/>
            </table:table-row>
            <table:table-row>
              <table:table-cell table:style-name="Table1.B2" table:number-columns-spanned="4" office:value-type="string">
                <text:p text:style-name="Table_20_Contents"/>
              </table:table-cell>
              <table:covered-table-cell/>
              <table:covered-table-cell/>
              <table:covered-table-cell/>
            </table:table-row>
            <table:table-row>
              <table:table-cell office:value-type="string">
                <text:p text:style-name="P2"/>
              </table:table-cell>
              <table:table-cell table:number-columns-spanned="2">
                <table:table table:is-sub-table="true">
                  <table:table-column table:style-name="Table1.B5.1"/>
                  <table:table-column table:style-name="Table1.B5.2"/>
                  <table:table-column table:style-name="Table1.B5.3"/>
                  <table:table-column table:style-name="Table1.B5.4"/>
                  <table:table-column table:style-name="Table1.B5.5"/>
                  <table:table-column table:style-name="Table1.B5.6"/>
                  <table:table-column table:style-name="Table1.B5.7"/>
                  <table:table-row table:style-name="Table1.B5.1">
                    <table:table-cell table:style-name="Table1.B2" table:number-columns-spanned="2" office:value-type="string">
                      <text:p text:style-name="P6">Produits</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <!--
                      <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                        <text:p text:style-name="P6">Modèle</text:p>
                      </table:table-cell>
                      -->
                    <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                      <text:p text:style-name="P7">Taxe</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                      <text:p text:style-name="P7">Prix (HT)</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                      <text:p text:style-name="P7">Prix (TTC)</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                      <text:p text:style-name="P7">Total (HT)</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.B3.1.3"  office:value-type="string">
                      <text:p text:style-name="P7">Total (TTC)</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                  </table:table-row>
                  <xsl:for-each select="/DATA/products/product">
                    <xsl:variable name="tot1" select="qty*price"/>
                    <xsl:variable name="tot2" select="qty*final_price"/>
                    <table:table-row table:style-name="Table1.B5.2">
                      <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                        <text:p text:style-name="P8">
                          <xsl:value-of select="qty"/> x
                        </text:p>
                      </table:table-cell>
                      <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                        <text:p text:style-name="P5">
                          <xsl:value-of select="name"/>
                        </text:p>
                      </table:table-cell>
                      <!--
                        <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                          <text:p text:style-name="P12">
                            <xsl:value-of select="model"/>
                          </text:p>
                        </table:table-cell>
                        -->
                      <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                        <text:p text:style-name="P8">
                          <xsl:value-of select="tax"/> %
                        </text:p>
                      </table:table-cell>
                      <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                        <text:p text:style-name="P7">
                          <xsl:value-of select="price"/> 
                          <xsl:text>&#160;</xsl:text> 
                          <xsl:value-of select="/DATA/order/currency"/>
                        </text:p>
                      </table:table-cell>
                      <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                        <text:p text:style-name="P7">
                          <xsl:value-of select="final_price"/> 
                          <xsl:text>&#160;</xsl:text> 
                          <xsl:value-of select="/DATA/order/currency"/>
                        </text:p>
                      </table:table-cell>
                      <table:table-cell table:style-name="Table1.B3.1.2" office:value-type="string">
                        <text:p text:style-name="P7">
                          <xsl:value-of select="$tot1"/> 
                          <xsl:text>&#160;</xsl:text> 
                          <xsl:value-of select="/DATA/order/currency"/>
                        </text:p>
                      </table:table-cell>
                      <table:table-cell table:style-name="Table1.B3.1.3" office:value-type="string">
                        <text:p text:style-name="P7">
                          <xsl:value-of select="$tot2"/> 
                          <xsl:text>&#160;</xsl:text> 
                          <xsl:value-of select="/DATA/order/currency"/>
                        </text:p>
                      </table:table-cell>
                      <table:covered-table-cell/>
                    </table:table-row>
                  </xsl:for-each>
                  <table:table-row>
                    <table:table-cell table:number-columns-spanned="4" office:value-type="string">
                      <text:p text:style-name="P2"/>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:table-cell table:number-columns-spanned="3">
                      <table:table table:is-sub-table="true">
                        <table:table-column table:style-name="Table1.B5.6.3.1"/>
                        <table:table-column table:style-name="Table1.B5.6.3.2"/>
                        <table:table-row>
                          <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                            <text:p text:style-name="P9">
                              <xsl:for-each select="/DATA/totals/total">
                                <xsl:choose>
                                  <xsl:when test="@class='ot_subtotal'">
                                    <xsl:value-of select="title" />
                                  </xsl:when>
                                </xsl:choose>
                              </xsl:for-each>
                            </text:p>
                          </table:table-cell>
                          <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                            <text:p text:style-name="P9">
                              <xsl:for-each select="/DATA/totals/total">
                                <xsl:choose>
                                  <xsl:when test="@class='ot_subtotal'">
                                    <xsl:value-of select="amount" /> 
                                    <xsl:text>&#160;</xsl:text> 
                                    <xsl:value-of select="amount/@currency" />
                                  </xsl:when>
                                </xsl:choose>
                              </xsl:for-each>
                            </text:p>
                          </table:table-cell>
                        </table:table-row>
                        <table:table-row>
                          <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                            <text:p text:style-name="P9">
                              <xsl:for-each select="/DATA/totals/total">
                                <xsl:choose>
                                  <xsl:when test="@class='ot_shipping'">
                                    <xsl:value-of select="title" />
                                  </xsl:when>
                                </xsl:choose>
                              </xsl:for-each>
                            </text:p>
                          </table:table-cell>
                          <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                            <text:p text:style-name="P9">
                              <xsl:for-each select="/DATA/totals/total">
                                <xsl:choose>
                                  <xsl:when test="@class='ot_shipping'">
                                    <xsl:value-of select="amount" /> 
                                    <xsl:text>&#160;</xsl:text> 
                                    <xsl:value-of select="amount/@currency" />
                                  </xsl:when>
                                </xsl:choose>
                              </xsl:for-each>
                            </text:p>
                          </table:table-cell>
                        </table:table-row>
                        <xsl:choose>
                          <xsl:when test="/DATA/totals/total[@class='ot_cod_fee']">
                            <table:table-row>
                              <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                                <text:p text:style-name="P9">
                                  <xsl:for-each select="/DATA/totals/total">
                                    <xsl:choose>
                                      <xsl:when test="@class='ot_cod_fee'">
                                        <xsl:value-of select="title" />
                                      </xsl:when>
                                    </xsl:choose>
                                  </xsl:for-each>
                                </text:p>
                              </table:table-cell>
                              <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                                <text:p text:style-name="P13">
                                  <xsl:for-each select="/DATA/totals/total">
                                    <xsl:choose>
                                      <xsl:when test="@class='ot_cod_fee'">
                                        <xsl:value-of select="amount" /> 
                                        <xsl:text>&#160;</xsl:text> 
                                        <xsl:value-of select="amount/@currency" />
                                      </xsl:when>
                                    </xsl:choose>
                                  </xsl:for-each>
                                </text:p>
                              </table:table-cell>
                            </table:table-row>
                          </xsl:when>
                        </xsl:choose>
                        <table:table-row>
                          <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                            <text:p text:style-name="P9">
                              <xsl:for-each select="/DATA/totals/total">
                                <xsl:choose>
                                  <xsl:when test="@class='ot_total'">
                                    <xsl:value-of select="title" />
                                  </xsl:when>
                                </xsl:choose>
                              </xsl:for-each>
                            </text:p>
                          </table:table-cell>
                          <table:table-cell table:style-name="Table1.B2" office:value-type="string">
                            <text:p text:style-name="P13">
                              <xsl:for-each select="/DATA/totals/total">
                                <xsl:choose>
                                  <xsl:when test="@class='ot_total'">
                                    <xsl:value-of select="amount" /> 
                                    <xsl:text>&#160;</xsl:text> 
                                    <xsl:value-of select="amount/@currency" />
                                  </xsl:when>
                                </xsl:choose>
                              </xsl:for-each>
                            </text:p>
                          </table:table-cell>
                        </table:table-row>
                      </table:table>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:table-cell office:value-type="string">
                      <text:p text:style-name="P2"/>
                    </table:table-cell>
                  </table:table-row>
                </table:table>
              </table:table-cell>
              <table:covered-table-cell/>
              <table:table-cell office:value-type="string">
                <text:p text:style-name="P2"/>
              </table:table-cell>
            </table:table-row>
          </table:table>
          <text:p text:style-name="Text_20_body"/>
          <text:p text:style-name="P8b">With our regards.</text:p>
          <text:p text:style-name="P8a">
            Thierry Schork<text:tab/>
            <text:line-break/>
            <text:tab/>Shop owner
            <text:tab/>
          </text:p>
        </office:text>
      </office:body>
    </office:document-content>
  </xsl:template>
  
</xsl:stylesheet>
