X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e93fbf2edc7fa6905dbcca3b2c6f6c76f306d71a..ff2a09e9ecd8e9bede2d3572942bcd32f66f6198:/librarian/epub/xsltScheme.xsl?ds=inline diff --git a/librarian/epub/xsltScheme.xsl b/librarian/epub/xsltScheme.xsl index 25296d3..1c066d9 100644 --- a/librarian/epub/xsltScheme.xsl +++ b/librarian/epub/xsltScheme.xsl @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<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: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" /> @@ -168,7 +168,7 @@ <xsl:template match="strofa"> <div class="stanza" xmlns="http://www.w3.org/1999/xhtml"> <xsl:apply-templates /> - </div><div xmlns="http://www.w3.org/1999/xhtml"> </div> + </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div> </xsl:template> <xsl:template match="wers_normalny"> @@ -284,6 +284,31 @@ <xsl:template match="motyw" /> +<xsl:template match="mat"> + <img xmlns="http://www.w3.org/1999/xhtml"> + <xsl:attribute name="src"> + <xsl:value-of select="wl:mathml(.)" /> + </xsl:attribute> + </img> +</xsl:template> + +<xsl:template match="tabela"> + <table xmlns="http://www.w3.org/1999/xhtml"> + <xsl:apply-templates /> + </table> +</xsl:template> +<xsl:template match="wiersz"> + <tr xmlns="http://www.w3.org/1999/xhtml"> + <xsl:apply-templates /> + </tr> +</xsl:template> +<xsl:template match="kol"> + <td xmlns="http://www.w3.org/1999/xhtml"> + <xsl:apply-templates /> + </td> +</xsl:template> + + <!--===========================================================--> <!-- Tagi IGNOROWANE --> <!--===========================================================--> @@ -291,8 +316,8 @@ <xsl:template match="extra" /> <xsl:template match="pe|pa|pr|pt" > - <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}" - xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a> + <a class="anchor" id="anchor-{.}" href="annotations.html#annotation-{.}" + xmlns="http://www.w3.org/1999/xhtml"><sup xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></sup></a> </xsl:template> <xsl:template match="uwaga" />