Subject: RE: Using tags within tags
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Wed, 16 Aug 2000 12:16:36 +0100
|
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
|