This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Using tags within tags
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Using tags within tags
- From: Ben Robb <Ben at cscape dot com>
- Date: Wed, 16 Aug 2000 12:16:36 +0100
- Reply-To: xsl-list at mulberrytech dot com
There are lots of ways to do this; this is probably the easiest for IE5:
<xsl:template match="/">
<html><xsl:apply-templates/></html>
</xsl:template>
<xsl:template match="page">
<body><xsl:apply-templates/></body>
</xsl:template>
<xsl:template match="line">
<xsl:apply-templates/><br />
</xsl:template>
<xsl:template match="cap">
<div>
<xsl:attribute name="style">
color:<xsl:value-of select="@color"/>
</xsl:attribute>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of select="." />
</xsl:template>
Rgs,
Ben
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list