X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/5f92f5a341c58a30c0a5c0d64ba3ed498bb9db85..90f6c5d936cafdc51639b251591a909696ea4935:/librarian/xslt/book2html.xslt diff --git a/librarian/xslt/book2html.xslt b/librarian/xslt/book2html.xslt index 201381c..715490e 100644 --- a/librarian/xslt/book2html.xslt +++ b/librarian/xslt/book2html.xslt @@ -112,6 +112,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 = --> @@ -242,7 +260,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 +276,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 +372,7 @@ <xsl:template match="extra|uwaga" mode="inline" /> <xsl:template match="nota_red" /> +<xsl:template match="abstrakt" /> <!-- ======== --> <!-- = TEXT = -->