This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Using tags within tags


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]