<xsl:template name="book-text">
<div id="book-text">
+ <xsl:attribute name="lang">
+ <xsl:value-of select="@lang" />
+ </xsl:attribute>
<xsl:apply-templates select="powiesc|opowiadanie|liryka_l|liryka_lp|dramat_wierszowany_l|dramat_wierszowany_lp|dramat_wspolczesny" />
- <xsl:if test="count(descendant::*[self::pe or self::pa or self::pr or self::pt or self::ptrad][not(parent::extra)])">
+ <xsl:if test="not(@nonotes) and count(descendant::*[self::pe or self::pa or self::pr or self::pt or self::ptrad][not(parent::extra)])">
<div id="footnotes">
<h3>Przypisy</h3>
<xsl:for-each select="descendant::*[self::pe or self::pa or self::pr or self::pt or self::ptrad][not(parent::extra)]">
<!-- ================================================ -->
<!-- Annotations -->
<xsl:template match="pa|pe|pr|pt|ptrad" mode="inline">
+ <xsl:if test="not(//@nonotes)">
<a name="{concat('anchor-', generate-id(.))}" />
<a href="{concat('#footnote-', generate-id(.))}" class="annotation">[<xsl:number value="count(preceding::*[self::pa or self::pe or self::pr or self::pt or self::ptrad]) + 1" />]</a>
+ </xsl:if>
</xsl:template>
<xsl:template match="ref" mode="inline">
<em class="person"><xsl:apply-templates mode="inline" /></em>
</xsl:template>
+<xsl:template match="br" mode="inline">
+ <br/>
+</xsl:template>
+
<xsl:template match="www" mode="inline">
<a target="_blank">
<xsl:attribute name="href">
</xsl:template>
+<xsl:template match="audio">
+ <span>
+ <xsl:attribute name="data-audio-part">
+ <xsl:value-of select="@part"/>
+ </xsl:attribute>
+ <xsl:attribute name="data-audio-ts">
+ <xsl:value-of select="@ts"/>
+ </xsl:attribute>
+ </span>
+</xsl:template>
+<xsl:template match="audio" mode="inline">
+ <xsl:apply-templates select="." />
+</xsl:template>
+
+
<!-- ================ -->
<!-- = SPECIAL TAGS = -->
<!-- ================ -->