X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/bddf82ce5ec2a7c34b6b14d3bdb6c4cf24af7388..07f1b10113588774b5cc75df100e8487a54b45d2:/librarian/xslt/book2html.xslt diff --git a/librarian/xslt/book2html.xslt b/librarian/xslt/book2html.xslt index 5e3228a..cde280e 100644 --- a/librarian/xslt/book2html.xslt +++ b/librarian/xslt/book2html.xslt @@ -40,12 +40,16 @@ <h3>Przypisy</h3> <xsl:for-each select="descendant::*[self::pe or self::pa or self::pr or self::pt][not(parent::extra)]"> <div> + <xsl:attribute name="class">fn-<xsl:value-of select="name()" /></xsl:attribute> <a name="{concat('footnote-', generate-id(.))}" /> <a href="{concat('#anchor-', generate-id(.))}" class="annotation">[<xsl:number value="count(preceding::*[self::pa or self::pe or self::pr or self::pt]) + 1" />]</a> <xsl:choose> <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> @@ -111,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 = --> @@ -230,6 +252,20 @@ <p class="motto_podpis"><xsl:apply-templates mode="inline" /></p> </xsl:template> +<xsl:template match="tabela"> + <table><xsl:apply-templates /></table> +</xsl:template> +<xsl:template match="wiersz"> + <tr><xsl:apply-templates /></tr> +</xsl:template> +<xsl:template match="kol"> + <td><xsl:apply-templates mode="inline" /></td> +</xsl:template> + +<xsl:template match="mat"> + <math xmlns="http://www.w3.org/1998/Math/MathML"><xsl:copy-of select="*" /></math> +</xsl:template> + <!-- ================================================ --> <!-- = INLINE TAGS = --> @@ -243,7 +279,7 @@ <!-- Other inline tags --> <xsl:template match="mat" mode="inline"> - <em class="math"><xsl:apply-templates mode="inline" /></em> + <math xmlns="http://www.w3.org/1998/Math/MathML"><xsl:copy-of select="*" /></math> </xsl:template> <xsl:template match="didask_tekst" mode="inline"> @@ -339,6 +375,7 @@ <xsl:template match="extra|uwaga" mode="inline" /> <xsl:template match="nota_red" /> +<xsl:template match="abstrakt" /> <!-- ======== --> <!-- = TEXT = -->