Add link anchor for internal bookmarks

This commit is contained in:
Sengian 2011-09-10 12:06:50 +02:00
parent c8e820760a
commit 6328279091

View File

@ -98,7 +98,7 @@
<xsl:apply-templates/>
</emph>
</xsl:when>
<xsl:when test = "@underlined">
<xsl:when test = "@underlined and @underlined != 'false'">
<emph rend = "paragraph-emph-underlined">
<xsl:apply-templates/>
</emph>
@ -451,6 +451,15 @@
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match = "rtf:field[@type='bookmark-start']">
<xsl:element name ="a">
<xsl:attribute name = "id">
<xsl:value-of select = "@number"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match = "rtf:field">
<xsl:apply-templates/>