<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:wl="http://wolnelektury.pl/functions">
+<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:wl="http://wolnelektury.pl/functions" exclude-result-prefixes="mml wl">
<xsl:output method="html" version="1.0" encoding="utf-8" />
<xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
<xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
</div>
</xsl:template>
- <xsl:template match="motto">
- <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:template match="ramka">
+ <div class="frame" xmlns="http://www.w3.org/1999/xhtml">
<xsl:apply-templates />
</div>
</xsl:template>
- <xsl:template match="ilustr" mode="inline">
- <xsl:apply-templates select="." />
+ <xsl:template match="motto">
+ <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates />
+ </div>
</xsl:template>
<xsl:template match="ilustr">
 </div>
</xsl:template>
+ <xsl:template match="wers_do_prawej">
+ <div class="verse" style='text-align: right;' xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates/>
+  </div>
+ </xsl:template>
+
<xsl:template match="wers_wciety[@typ!='']">
<div class="verse" xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="style">
</em>
</xsl:template>
+ <xsl:template match="wieksze_odstepy" >
+ <em class="wieksze-odstepy" xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates />
+ </em>
+ </xsl:template>
+
+ <xsl:template match="indeks_dolny" >
+ <sub xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates />
+ </sub>
+ </xsl:template>
+
<xsl:template match="osoba" >
<em class="person" xmlns="http://www.w3.org/1999/xhtml">
<xsl:apply-templates />
</img>
</xsl:template>
-<xsl:template match="tabela">
- <table xmlns="http://www.w3.org/1999/xhtml">
- <xsl:apply-templates />
- </table>
+<xsl:template match="tabela|tabelka">
+ <xsl:choose>
+ <xsl:when test="@ramka = '1'">
+ <table class="border" xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></table>
+ </xsl:when>
+ <xsl:otherwise>
+ <table xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></table>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="wiersz">
<tr xmlns="http://www.w3.org/1999/xhtml">