xsl-list
[Top] [All Lists]

A grouping question ?

2003-10-31 05:34:51
Hi, I don't know if this is a grouping question, but given than I don't know the way to solve it. I need your help. This is my problem:

I have a XML file such as:

<Content>
   <Paragraph bullet='false'>
       <Text txt='Hello World'/>
   </Paragraph>
   <Paragraph bullet='true'>
       <Text txt='First Bulleted Hello World'/>
   </Paragraph>
   <Paragraph bullet='true'>
       <Text txt='Second Bulleted Hello World'/>
   </Paragraph>
   <Paragraph bullet='false'>
       <Text txt='A normal line of text'/>
   </Paragraph>
   <Paragraph bullet='true'>
       <Text txt='Another bulleted line'/>
   </Paragraph>
   <Paragraph bullet='true'>
       <Text txt='A second bulleted line'/>
   </Paragraph>
</Content>
And I want an HTML output like the following:

<html>
   <p>Hello World</p>
   <ul>
       <li>First Bulleted Hello World</li>
       <li>Second Bulleted Hello World</li>
   </ul>
   <p>A normal line of text</p>
   <ul>
       <li>Another bulleted line</li>
       <li>A second bulleted line</li>
   </ul>
</html>

I thought that it was a grouping problem, but when I tried to solve it, I realized that this is not a "normal" grouping problem.

Can someone tell me a way to solve it -- if it exists....

Thanks
Emilio


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



<Prev in Thread] Current Thread [Next in Thread>