Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml to html

Status
Not open for further replies.

nigele2

Programmer
Oct 8, 2001
17
GB
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=&quot;section&quot; >
<xsl:variable name=&quot;heading&quot;>1</xsl:variable>
<xsl:value-of select=&quot;$heading&quot; />
<xsl:apply-templates select=&quot;paragraph&quot; />
</xsl:template>

Thanks in advance
 
<xsl:variable name=&quot;heading&quot;>1</xsl:variable>

<xsl:element name=&quot;H{$heading}&quot;>My Heading</xsl:element>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top