<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][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][not(parent::extra)]">
+ <xsl:for-each select="descendant::*[self::pe or self::pa or self::pr or self::pt or self::ptrad][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>
+ <a href="{concat('#anchor-', 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:choose>
<xsl:when test="count(akap|akap_cd|strofa) = 0">
<p><xsl:apply-templates select="text()|*" mode="inline" />
<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>
+ <xsl:if test="name()='ptrad'"> [przypis tradycyjny]</xsl:if>
</p>
</xsl:when>
<xsl:otherwise>
<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>
+ <xsl:if test="name()='ptrad'"> [przypis tradycyjny]</xsl:if>
</p>
</xsl:otherwise>
</xsl:choose>
</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>
<!-- = (contain other inline tags and special tags) = -->
<!-- ================================================ -->
<!-- Annotations -->
-<xsl:template match="pa|pe|pr|pt" mode="inline">
+<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]) + 1" />]</a>
+ <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">
</xsl:template>
<xsl:template match="slowo_obce" mode="inline">
- <em class="foreign-word"><xsl:apply-templates mode="inline" /></em>
+ <em>
+ <xsl:attribute name="class">
+ <xsl:text>foreign-word</xsl:text>
+ <xsl:if test="@protect">
+ <xsl:text> foreign-word-protected</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+ <xsl:apply-templates mode="inline" />
+ </em>
</xsl:template>
<xsl:template match="tytul_dziela" 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="werset">
+ <p class="werset paragraph">
+ <xsl:call-template name="block-args" />
+ <xsl:call-template name="section-anchor"/>
+ <xsl:apply-templates mode="inline" />
+ </p>
+</xsl:template>
+
+
<!-- ================ -->
<!-- = IGNORED TAGS = -->
<!-- ================ -->
<xsl:attribute name="data-start">
<xsl:value-of select="@start" />
</xsl:attribute>
+ <xsl:attribute name="data-link">
+ <xsl:value-of select="@link" />
+ </xsl:attribute>
</span>
</xsl:template>