This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
unordered lists from xml to html
- From: "Ian Hord" <ian at hord dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Sun, 28 Apr 2002 12:31:38 +1000
- Subject: [xsl] unordered lists from xml to html
- Reply-to: xsl-list at lists dot mulberrytech dot com
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