Add anchors to themes.
authorMarek Stępniowski <marek@stepniowski.com>
Tue, 16 Sep 2008 10:11:45 +0000 (12:11 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Tue, 16 Sep 2008 10:11:45 +0000 (12:11 +0200)
lib/librarian/book2html.xslt

index 7e6a2ef..d6c9db1 100644 (file)
 <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: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>
         <xsl:value-of select="string(following::motyw[@id=$mnum]/text())" />
     </span>
 </xsl:template>