<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" version="1.0">
 <xsl:output method="xml"/>
 <xsl:template match="/">
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
   <fo:layout-master-set>                  
    <fo:simple-page-master master-name="simple" page-height="29.7cm" page-width="21cm" margin-left="2.5cm" margin-right="2.5cm">
     <fo:region-body margin-top="3cm"/>      
    </fo:simple-page-master>
   </fo:layout-master-set> 
  <fo:page-sequence 
               master-reference="simple">      
   <fo:flow flow-name="xsl-region-body">
   <fo:block>
  <svg:svg width="100%" height="150" version="1.1" xmlns:svg="http://www.w3.org/2000/svg">

<svg:defs>
<svg:filter id="Gaussian_Blur">
<svg:feGaussianBlur in="SourceGraphic" stdDeviation="3"/>
</svg:filter>
</svg:defs>

<svg:rect x="0" y="0" rx="20" ry="20" width="770" height="150" style="fill:red;stroke:black;stroke-width:10;opacity:0.5;filter:url(#Gaussian_Blur)"/>

<svg:text x="35" y="60" style="font: 36px verdana bold; fill: navy;">Domáca úloha</svg:text>
<svg:text x="90" y="90" style="font: 36px verdana bold; fill: blue;">SVG</svg:text>


</svg:svg>            
            </fo:block>
             <xsl:apply-templates/>                 
   </fo:flow>
 </fo:page-sequence>
</fo:root>
  </xsl:template>

  <xsl:template match="eshop">              
   <fo:block>
   
    <xsl:apply-templates/>
   </fo:block>
  </xsl:template>

  <xsl:template match="eshop/tovar/nazov">                  
   <fo:block>
    <fo:inline font-weight="bold">
     Nazov: </fo:inline>
     <xsl:apply-templates/>
     </fo:block>
</xsl:template>
  
  <xsl:template match="eshop/tovar/vyrobca">                  
    <fo:block>
     <fo:inline font-weight="bold">
     Vyrobca: </fo:inline>
     <xsl:apply-templates/>
     </fo:block>
 </xsl:template>
  
 <xsl:template match="eshop/tovar/popis">                  
    <fo:block>
     <fo:inline font-weight="bold">
     Popis: </fo:inline>
     <xsl:apply-templates/>
     </fo:block>
</xsl:template>

<xsl:template match="eshop/tovar/dostupnost">                  
    <fo:block>
     <fo:inline font-weight="bold">
     Dostupnost: </fo:inline>
     <xsl:apply-templates/>
     </fo:block>
</xsl:template>

 
<xsl:template match="eshop/tovar/poplatky">                  
    <fo:block>
     <fo:inline font-weight="bold">
     Poplatky: </fo:inline>
     <xsl:apply-templates/>
     </fo:block>
 </xsl:template>


  <xsl:template match="eshop/tovar/kod">                  
    <fo:block>
    <fo:inline font-weight="bold">Kod tovaru: </fo:inline>
     <xsl:apply-templates/>
     </fo:block>
  </xsl:template>

  <xsl:template match="eshop/tovar/zaruka">                    
     <fo:block>
     <fo:inline font-weight="bold">
     Zaruka (v mesiacoch): </fo:inline>
     <xsl:apply-templates/>
     </fo:block>
  </xsl:template>


 <xsl:template match="eshop/tovar/cena">                  
    <fo:block>
    <fo:inline font-weight="bold">Cena (SK): </fo:inline>
     <xsl:apply-templates/>
     </fo:block>
  </xsl:template>


<xsl:template match="*">                       

|
  <fo:block background-color="lightblue">
   
   <xsl:apply-templates/>
  </fo:block>
 </xsl:template>

</xsl:stylesheet>
