Hi Folks
I'm a bit stumped to say the least. I've got an XML document (a fragment follows) and I've been trying to transform this into HTML using good old XSL. However, the bulleted list that I'm trying to create just doesn't work!
****** DTD Excerpt ******
<!ELEMENT ActReference (para | SubActRef)*>
<!ELEMENT SubActRef (para*)>
****** XML Excerpt ******
<ActReference>
<para>This is some introductory text and a bulleted list follows:</para>
<SubActRef><para>Bullet 1</para></SubActRef>
<SubActRef><para>Bullet 2</para></SubActRef>
<para>And this text continues on from above.</para>
</ActReference>
****** My Question ******
I want to use XSL to transform the above XML fragment into HTML as follows:
<p>This is some introductory text and a bulleted list follows:
(a paragraph end tag could appear here if you think it's necessary e.g. </p>)
<ol type="a">
<li>Bullet 1</li>
<li>Bullet 2</li>
</ol>
(a paragraph start tag could appear here if you think it's necessary e.g. <p>)
And this text continues on from above.</p>
*************************
I can't seem to figure out how to do this with XSL. I either end up bulleting the whole <ActReference> paragraph or the section simply disappears! Is it possible to do or do I need to modify the structure of my XML document? Any help or suggestions would be greatly appreciated.
Cheers,
Kenny.
I'm a bit stumped to say the least. I've got an XML document (a fragment follows) and I've been trying to transform this into HTML using good old XSL. However, the bulleted list that I'm trying to create just doesn't work!
****** DTD Excerpt ******
<!ELEMENT ActReference (para | SubActRef)*>
<!ELEMENT SubActRef (para*)>
****** XML Excerpt ******
<ActReference>
<para>This is some introductory text and a bulleted list follows:</para>
<SubActRef><para>Bullet 1</para></SubActRef>
<SubActRef><para>Bullet 2</para></SubActRef>
<para>And this text continues on from above.</para>
</ActReference>
****** My Question ******
I want to use XSL to transform the above XML fragment into HTML as follows:
<p>This is some introductory text and a bulleted list follows:
(a paragraph end tag could appear here if you think it's necessary e.g. </p>)
<ol type="a">
<li>Bullet 1</li>
<li>Bullet 2</li>
</ol>
(a paragraph start tag could appear here if you think it's necessary e.g. <p>)
And this text continues on from above.</p>
*************************
I can't seem to figure out how to do this with XSL. I either end up bulleting the whole <ActReference> paragraph or the section simply disappears! Is it possible to do or do I need to modify the structure of my XML document? Any help or suggestions would be greatly appreciated.
Cheers,
Kenny.