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]

Using tags within tags


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@telekabel.nl


 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]