[xsl] Converting HTML-like to OpenDocument

Subject: [xsl] Converting HTML-like to OpenDocument
From: Alex Hudson <home@xxxxxxxxxxxxxx>
Date: Wed, 31 May 2006 12:08:47 +0100

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> 

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> 

... 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



Current Thread