Add anchors to themes.
[wolnelektury.git] / lib / librarian / book2html.xslt
index 47e126a..d6c9db1 100644 (file)
 <xsl:template name="verse">
     <xsl:param name="line-content" />
     <xsl:param name="line-number" />
-    <p>
+    <p class="verse">
         <xsl:choose>
             <xsl:when test="name($line-content) = 'wers_akap'">
                 <xsl:attribute name="style">padding-left: 1em</xsl:attribute>
 <xsl:template match="begin" mode="inline">
     <xsl:variable name="mnum" select="concat('m', substring(@id, 2))" />
     <span class="theme-begin" fid="{substring(@id, 2)}">
+        <a name="m{substring(@id, 2)}" />
         <xsl:value-of select="string(following::motyw[@id=$mnum]/text())" />
     </span>
 </xsl:template>