<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!DOCTYPE document SYSTEM "rml_1_0.dtd">
<document filename="kraft.pdf">
<template pageSize="(21cm, 29.7cm)" leftMargin="2.41cm" rightMargin="0.81cm"
  topMargin="2.0cm" bottomMargin="2.0cm" title="Kraft Document" 
  author="http://kraft.kde.org" allowSplitting="20"
  showBoundary="0">
    <template>
      <setFont name="Times-Roman" size="12" />
    </template>
    <pageTemplate id="first">
        <pageGraphics>
            <setFont name="Times-Roman" size="12" />
	    <lineMode width="0.5" />
            <lines>2.41cm 2.2cm 19cm 2.2cm</lines>
	    <fill color="darkgreen" />
            <drawCentredString x="105mm" y="2.3cm"> </drawCentredString>

            <lines>7mm 19cm 12mm 19cm</lines>
            <lines>2mm 14.65cm 12mm 14.65cm</lines>

	    <fill color="black" />
	    <setFont name="Times-Roman" size="8" />
            <drawString x="25mm" y="24.7cm"> -  -  </drawString>
	    <lines>25mm 24.6cm 11cm 24.6cm</lines>
	    <setFont name="Times-Roman" size="10" />
            <drawCentredString x="105mm" y="1.8cm"> -  </drawCentredString>
            <drawCentredString x="105mm" y="1.4cm">Telephone  - Fax </drawCentredString>
	    <!-- image x="140mm" y="22cm" width="6cm" height="6cm" file="IMAGE(lurchie.png)"  -->

        </pageGraphics>
        <frame id="address"  x1="2.41cm" y1="20.62cm" width="8.5cm" height="4cm"/>
        <frame id="info"     x1="12cm" y1="20.62cm" width="7.41cm" height="1.5cm"/>
        <frame id="subject"  x1="2.41cm" y1="18.2cm" width="17cm"  height="1.2cm"/>
        <frame id="detail"   x1="2.41cm" y1="3cm"  width="17cm"  height="15cm"/>

    </pageTemplate>

    <pageTemplate id="others">
        <pageGraphics>
            <setFont name="Times-Roman" size="12" />
	    <lineMode width="0.5" />
            <lines>2cm 2.2cm 19cm 2.2cm</lines>
	    <fill color="darkgreen" />
            <drawCentredString x="105mm" y="2.3cm"> </drawCentredString>
	    <setFont name="Times-Roman" size="10" />
	    <fill color="black" />
            <drawCentredString x="105mm" y="1.8cm"> -  </drawCentredString>
            <drawCentredString x="105mm" y="1.4cm">Telephone  - Fax </drawCentredString>
        </pageGraphics>

        <frame id="content" x1="2.0cm" y1="3.0cm" width="17cm" height="24.5cm"/>
    </pageTemplate>
</template>
<stylesheet>
    <initialize>
      <alias id="style.normal" value="style.Normal"/>
    </initialize>

    <blockTableStyle id="products">
      <blockFont name="Helvetica-BoldOblique" size="24" start="0,0" stop="-1,0"/>
      <blockBackground colorName="lightgrey" start="0,0" stop="-1,0"/>
      <blockTextColor colorName="white" start="0,0" stop="-1,0"/>
      <blockValign value="TOP"/>
      <blockAlignment value="LEFT"/>

      <blockBottomPadding length="8mm" start="0,1" stop="-1,-1"/>
      <blockTopPadding length="4mm" start="0,1" stop="-1,-1"/>

      <lineStyle kind="LINEBELOW" colorName="black" start="0,0" stop="-1,0"/>

      <lineStyle kind="LINEABOVE" colorName="black" start="-3,-3" stop="-1,-3"/>
      <lineStyle kind="LINEABOVE" colorName="black" start="-3,-1" stop="-1,-1"/>
   </blockTableStyle>

   <paraStyle name="conditions" fontName="Helvetica" fontSize="8" alignment="justify"/>
   
   <paraStyle name="text" fontSize="12" alignment="justify" spaceBefore="3mm" />
   <paraStyle name="demandtext"      fontSize="12" alignment="justify" fontName="Times-Italic" />
   <paraStyle name="alternativetext" fontSize="12" alignment="justify" fontName="Times-Italic" />

   <paraStyle name="rtext" fontSize="12" alignment="RIGHT" spaceBefore="3mm" />
   <paraStyle name="demandrtext" fontName="Times-Italic" fontSize="12" alignment="RIGHT" spaceBefore="3mm" />
   <paraStyle name="alternativertext" fontName="Times-Italic" fontSize="12" alignment="RIGHT" spaceBefore="3mm" />

   <paraStyle name="head" fontSize="12" alignment="justify"/>
   <paraStyle name="details" fontSize="12" alignment="right"/>
   <paraStyle name="addressStyle" fontSize="12" />

</stylesheet>
<story>
    <!-- Address Frame -->
    <xpre style="addressStyle">
<br />
<br />
<br />
Dagobert Duck
Entenweg 5

Entenhausen, 17433
    </xpre>
    
    <nextFrame/>
    <!-- Info Frame -->
    <para  style="text" alignment="right"></para>

    <nextFrame/>
    <!-- Subject Frame -->
    <h1>Angebot Nr. 2-2010</h1>

    <!-- Detail Frame -->
    <spacer length="1mm" width="1mm"/>
    <para style="text">
        XtTQrB11uo
    </para>
    <spacer length="1mm" width="1mm"/>
        <para style="text">2010-02-11</para>

    <setNextTemplate name="others" />

    <spacer length="18mm" width="1mm"/>

    <blockTable colWidths="8mm,9cm,1.0cm,1cm,2.5cm,2.5cm" style="products" repeatRows="0">
    <tr>
        <td><para style="text">Pos.</para></td>
        <td><para style="text">Item</para></td>
        <td><para style="text">Qty.</para></td>
        <td><para style="text">Unit</para></td>
        <td><para style="rtext">Price</para></td>
        <td><para style="rtext">Sum</para></td>
    </tr>
    
    <tr>
        <td><para style="text">1.</para></td>
        <td>      <para style="text"></para>          </td>
        <td><para style="text">0.00 </para></td>
        <td><para style="text">A first item.    </para></td>
        <td><para style="rtext">$ 2.12</para></td>
        <td><para style="rtext">$ 48.76</para></td>
    </tr>
    
    <tr>
        <td><para style="text">2.</para></td>
        <td>      <para style="text"></para>          </td>
        <td><para style="text">0.00 </para></td>
        <td><para style="text">A test template for chapter work   </para></td>
        <td><para style="rtext">$ 1.00</para></td>
        <td><para style="rtext">$ 34.00</para></td>
    </tr>
    
    <tr><td></td>
        <td></td>
        <td></td>
        <td></td>
        <td><para style="text">net:</para></td>
        <td><para style="rtext">$ 82.76</para></td>
    </tr>
    
    
    <tr><td></td>
        <td></td>
        <td></td>
        <td></td>
        <td><para style="text">total sum:</para></td>
        <td><para style="rtext">$ 82.76</para></td>
    </tr>
    </blockTable>
    
    <para style="text">
    Please note: This offer contains 2 alternative or demand positions, 
    printed in italic font. These do not add to the overall sum. 
    </para>
    
    <spacer length="1cm" width="1mm"/>
    <condPageBreak height="4cm"/>
	<para style="text">Tolles Angebot, das willst du wirklich haben.</para>
    <spacer length="0.5cm" width="1mm"/>
    <para style="text">
       Dear Mrs. Duck
    </para>
</story>
</document>
