I have an attribute which is 1, 2, 3 or 4. It represents the heading tags of HTML (H1, H2, H3 and H4).
I wany to enclose the paragraph template below with the relevany <H?> tags. Any ideas how I can do this?
<xsl:template match="section" >
<xsl:variable name="heading">1</xsl:variable>
<xsl:value-of select="$heading" />
<xsl:apply-templates select="paragraph" />
</xsl:template>
Thanks in advance
I wany to enclose the paragraph template below with the relevany <H?> tags. Any ideas how I can do this?
<xsl:template match="section" >
<xsl:variable name="heading">1</xsl:variable>
<xsl:value-of select="$heading" />
<xsl:apply-templates select="paragraph" />
</xsl:template>
Thanks in advance