Formatting elements

Subject: Formatting elements
From: Stuart Wilson <coracle@xxxxxxxxxxxxxx>
Date: Tue, 3 Oct 2000 12:34:01 +0100
Hi,
   I'm new to XSL and I'm having trouble writing a stylesheet. The format of 
my
input XML is

<document>
<item name='title'><text>Title field</text></item>
<item name='bullet1'><text>some text for item 1</text></item>
<item name='bullet2'><text>some text for item 2</text></item>
<item name='bullet3'><text/></item>
<item name='bullet4'><text/></item>
<item name='bullet5'><text/></item>
<item name='bullet6'><text/></item>
...
<item name='bulletn'><text/></item>
</document>

I'm trying to get my stylesheet to output

<document>
<title>Title field</title>
<bulletlist>
   <bullet>some text for item 1</bullet>
   <bullet>some text for item 2</bullet>
   <bullet></bullet>
   <bullet></bullet>
   <bullet></bullet>
   ...
</bulletlist>
</document>

I have managed to generate to new tags from the name attribute but cannot
get the <bulletlist> element generated. Can anyone help?

Thanks in advance,

Stuart



Totalise - the Users ISP
----------------------
To become a member and a shareholder
visit http://www.totalise.net

-------------------------------------------
Free SMS messaging ---> http://sms.totalise.net

Send Flowers ---> http://www.flowers2send.com
-------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread