[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

unordered lists from xml to html

Subject: unordered lists from xml to html
From: "Ian Hord" <ian@xxxxxxxx>
Date: Sun, 28 Apr 2002 12:31:38 +1000
xsl unordered lists
Hi,

I am new to xsl and struggling with converting some xml to html. For example
I have the following

<summary>
<para bullet=1>This is paragraph 1
/para>
<para bullet=0>This is paragraph 2
/para>
<para bullet=1>This is paragraph 3
/para>
<para bullet=1>This is paragraph 4
/para>
</summary>

I want to convert it to the following html using xsl

<ul>
<li>This is paragraph 1</li>
</ul>
<p>This is paragraph 2</p>
<ul>
<li>This is paragraph 3</li>
<li>This is paragraph 4</li>
</ul>

You will see that the attributes in the para element determine whether the
paragraph should be in a bullet or not.

If anyone can suggest a solution I will be most grateful.
Thanks in advance,

Ian Hord


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.