X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/dd6f13725963dd34f96ebbf7688461ab1ce4466c..f4fdb08e0b0ff0da9faed1ac5d89a1523cad7271:/librarian/epub/xsltScheme.xsl diff --git a/librarian/epub/xsltScheme.xsl b/librarian/epub/xsltScheme.xsl index d6f69bb..4031949 100644 --- a/librarian/epub/xsltScheme.xsl +++ b/librarian/epub/xsltScheme.xsl @@ -67,14 +67,16 @@ </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"> @@ -207,6 +209,12 @@  </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"> @@ -264,6 +272,12 @@ </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 /> @@ -317,9 +331,14 @@ </xsl:template> <xsl:template match="tabela|tabelka"> - <table xmlns="http://www.w3.org/1999/xhtml"> - <xsl:apply-templates /> - </table> + <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">