Subject: Using tags within tags
From: Mick <mick@xxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 13:05:12 +0200
|
Hi all,
I have the following problem. I'm trying to use tags that are nested within
other tags but everything I've tried so far won't work. I'm using IE5. I
have the following piece of XML:
<root>
<page>
<line><cap colour="red">T</cap>his is line 1</line>
<line><cap colour="blue">T</cap>his is line 2</line>
.............
</page>
</root>
The HTML output I want is as follows:
<html>
<body>
<div style="color:red">T</div>his is line 1<br/>
<div style="color:blue">T</div>his is line 2<br/>
</body>
</html>
Can anyone tell me what the XSL should be in order to achieve this result?
Thanks.
Mick van Rootseler
mick@xxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|