xsl-list
[Top] [All Lists]

XHTML -to- WIKI ... so close ... yet not close enough

2005-02-06 04:58:13
Morning one and all.

I am wishing to take XHTML to Wiki format. The Wiki format is relatively straight forward with no major complications. I have written most of the XSLT file but I am having problems (fun?) with working with embedded lists.

For example:

------ XHMTL -------------
<ul>
  <li>Element1</li>
  <li>Element2
    <ul>
       <li>Element2.1
         <ul>
           <li>Element2.1.1</li>
         </ul>
       </li>
    </ul>
  </li>
  <li>Element 3</li>
</ul>
-------------------------

Should be converted to:

------ WIKI -------------

- Element1
- Element2
-- Element2.1
--- Element2.1.1
- Element3

-------------------------

I just can't seem to get the [--] to count along properly; i have it instead just rendering it all as [-] elements.

Any help along these lines would be much appreciated.

thanks

alan


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