-<xsl:template match="begin" mode="inline">
- <xsl:variable name="mnum" select="concat('m', substring(@id, 2))" />
- <span class="theme-begin" fid="{substring(@id, 2)}">
- <xsl:value-of select="string(following::motyw[@id=$mnum]/text())" />
- </span>
-</xsl:template>
-
-<xsl:template match="end" mode="inline">
- <span class="theme-end" fid="{substring(@id, 2)}"> </span>
-</xsl:template>
-
-<xsl:template match="begin|end">
- <xsl:apply-templates select='.' mode="inline" />
-</xsl:template>
-
-<xsl:template name="verse">
- <xsl:param name="line-content" />
- <xsl:param name="line-number" />
- <p>
- <xsl:choose>
- <xsl:when test="name($line-content) = 'wers_akap'">
- <xsl:attribute name="style">indent: 1em</xsl:attribute>
- </xsl:when>
- <xsl:when test="name($line-content) = 'wers_wciety'">
- <xsl:attribute name="style">indent: 2em</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:apply-templates select="$line-content" mode="inline" />
- </p>
-</xsl:template>
-
-<xsl:template match="pa|pe|pr|pt" mode="inline">
- <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>