X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/5f92f5a341c58a30c0a5c0d64ba3ed498bb9db85..43fe93caf99d223acd1defc31afdfda6b596551b:/librarian/xslt/book2html.xslt diff --git a/librarian/xslt/book2html.xslt b/librarian/xslt/book2html.xslt index 201381c..d39a76a 100644 --- a/librarian/xslt/book2html.xslt +++ b/librarian/xslt/book2html.xslt @@ -47,6 +47,9 @@ <xsl:when test="count(akap|akap_cd|strofa) = 0"> <p><xsl:apply-templates select="text()|*" mode="inline" /> <xsl:if test="name()='pa'"> [przypis autorski]</xsl:if> + <xsl:if test="name()='pt'"> [przypis tÅumacza]</xsl:if> + <xsl:if test="name()='pr'"> [przypis redakcyjny]</xsl:if> + <xsl:if test="name()='pe'"> [przypis edytorski]</xsl:if> </p> </xsl:when> <xsl:otherwise> @@ -112,6 +115,24 @@ <div class="motto"><xsl:apply-templates /></div> </xsl:template> +<xsl:template match="ilustr" mode="inline"> + <xsl:apply-templates select="."/> +</xsl:template> + +<xsl:template match="ilustr"> + <img> + <xsl:attribute name="src"> + <xsl:value-of select="$gallery" /><xsl:value-of select="@src" /> + </xsl:attribute> + <xsl:attribute name="alt"> + <xsl:value-of select="@alt" /> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:value-of select="@alt" /> + </xsl:attribute> + </img> +</xsl:template> + <!-- ========================================== --> <!-- = PARAGRAPH TAGS = --> @@ -231,7 +252,7 @@ <p class="motto_podpis"><xsl:apply-templates mode="inline" /></p> </xsl:template> -<xsl:template match="tabela"> +<xsl:template match="tabela|tabelka"> <table><xsl:apply-templates /></table> </xsl:template> <xsl:template match="wiersz"> @@ -242,7 +263,7 @@ </xsl:template> <xsl:template match="mat"> - <xsl:copy-of select="*" /> + <math xmlns="http://www.w3.org/1998/Math/MathML"><xsl:copy-of select="*" /></math> </xsl:template> @@ -258,7 +279,7 @@ <!-- Other inline tags --> <xsl:template match="mat" mode="inline"> - <xsl:copy-of select="*" /> + <math xmlns="http://www.w3.org/1998/Math/MathML"><xsl:copy-of select="*" /></math> </xsl:template> <xsl:template match="didask_tekst" mode="inline"> @@ -354,6 +375,7 @@ <xsl:template match="extra|uwaga" mode="inline" /> <xsl:template match="nota_red" /> +<xsl:template match="abstrakt" /> <!-- ======== --> <!-- = TEXT = -->