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]
Other format: [Raw text]

unordered lists from xml to html


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]