<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)]">
</p>
</xsl:template>
+<xsl:template match="list">
+ <blockquote class="letter"><xsl:apply-templates /></blockquote>
+</xsl:template>
+<xsl:template match="adresat">
+ <p class="paragraph adresat">
+ <xsl:call-template name="block-args" />
+ <xsl:call-template name="section-anchor"/>
+ <xsl:apply-templates mode="inline" />
+ </p>
+</xsl:template>
+<xsl:template match="miejsce_data">
+ <p class="paragraph miejsce_data">
+ <xsl:call-template name="block-args" />
+ <xsl:call-template name="section-anchor"/>
+ <xsl:apply-templates mode="inline" />
+ </p>
+</xsl:template>
+<xsl:template match="naglowek_listu">
+ <p class="paragraph naglowek_listu">
+ <xsl:call-template name="block-args" />
+ <xsl:call-template name="section-anchor"/>
+ <xsl:apply-templates mode="inline" />
+ </p>
+</xsl:template>
+<xsl:template match="pozdrowienie">
+ <p class="paragraph pozdrowienie">
+ <xsl:call-template name="block-args" />
+ <xsl:call-template name="section-anchor"/>
+ <xsl:apply-templates mode="inline" />
+ </p>
+</xsl:template>
+<xsl:template match="podpis">
+ <p class="paragraph podpis">
+ <xsl:call-template name="block-args" />
+ <xsl:call-template name="section-anchor"/>
+ <xsl:apply-templates mode="inline" />
+ </p>
+</xsl:template>
+
<xsl:template match="strofa" mode="inline">
<xsl:apply-templates select="." />
</xsl:template>
<!-- ================================================ -->
<!-- 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">