xsl-list
[Top] [All Lists]

[xsl] Converting HTML-like to OpenDocument

2006-05-31 04:09:11
Hi,

I've run into a problem converting between HTML-like lists and the
structure that OpenDocument requires.

In HTML, you're allowed to do something like: 

   <li>This is some text. 
      <ul><li>This is a sub-list</li></ul> 
      Here is some <em>more text</em> 
   </li> 

In ODF, that would have to be structured as: 

   <li><p>This is some text.</p> 
      <ul><li><p>This is a sub-list</p></li></ul> 
      <p>Here is some <em>more text</em></p> 
   </li>

... where all the text is within a <p> node, but sub-lists are not.

I've tried doing this a number of ways in XSL, and am not getting even
close. I'm pretty sure that this is some kind of grouping problem, but I
would be grateful for any hints people could give me about how to attack
this.

Thanks,

Alex.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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