Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FB2: use mode=para for poems -- simplify.

  • Loading branch information...
commit a31e3178735b133e86b013da22acf38bd1b83534 1 parent 1168ecb
@mgorny authored
Showing with 4 additions and 14 deletions.
  1. +1 −1  librarian/fb2/fb2.xslt
  2. +3 −13 librarian/fb2/poems.xslt
View
2  librarian/fb2/fb2.xslt
@@ -48,7 +48,7 @@
<xsl:choose>
<xsl:when test="local-name() = 'liryka_l'">
<poem>
- <xsl:apply-templates mode="poem"/>
+ <xsl:apply-templates mode="para"/>
</poem>
</xsl:when>
View
16 librarian/fb2/poems.xslt
@@ -14,24 +14,16 @@
<!-- poems -->
<!-- match poem citations -->
- <xsl:template mode="paras" match="poezja_cyt">
+ <xsl:template mode="para" match="poezja_cyt">
<cite>
<poem>
- <xsl:apply-templates mode="poem"/>
+ <xsl:apply-templates mode="para"/>
</poem>
</cite>
</xsl:template>
- <!-- / XXX: fb2 doesn't allow <poem/> inside <p/> /
- <xsl:template mode="inline" match="poezja_cyt">
-
- <poem>
- <xsl:apply-templates mode="poem"/>
- </poem>
- </xsl:template>
- -->
<!-- regular poem elements -->
- <xsl:template mode="poem" match="strofa">
+ <xsl:template mode="para" match="strofa">
<stanza>
<xsl:call-template name="split-poem">
<xsl:with-param name="list" select="."/>
@@ -58,6 +50,4 @@
</xsl:call-template>
</xsl:if>
</xsl:template>
-
- <xsl:template match="text()" mode="poem"/>
</xsl:stylesheet>
Please sign in to comment.
Something went wrong with that request. Please try again.