summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/online_transform.xsl8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/online_transform.xsl b/source/online_transform.xsl
index 3f629d7a3b..4ff8d2a26e 100644
--- a/source/online_transform.xsl
+++ b/source/online_transform.xsl
@@ -369,9 +369,10 @@
<xsl:choose>
<xsl:when test="@role='heading'"> <!-- increase the level of headings that are embedded -->
- <xsl:variable name="level"><xsl:value-of select="number(@level)+1"/></xsl:variable>
+<!-- <xsl:variable name="level"><xsl:value-of select="number(@level)+1"/></xsl:variable> -->
<xsl:call-template name="insertheading">
- <xsl:with-param name="embedded" select="'yes'"/>
+ <xsl:with-param name="embedded" select="'yes'"/>
+ <xsl:with-param name="level" select="@level"/>
</xsl:call-template>
</xsl:when>
@@ -563,7 +564,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <p class="{$role}"><xsl:apply-templates /></p>
+ <p id="{@id}" class="{$role}"><xsl:apply-templates /></p>
</xsl:template>
<!-- Insert Basic code snippet -->
@@ -673,6 +674,7 @@
<xsl:param name="level" />
<xsl:param name="embedded" />
<xsl:element name="{concat('h',$level)}">
+ <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
<xsl:choose>
<xsl:when test="$embedded = 'yes'">
<xsl:apply-templates mode="embedded"/>