Hi to every one,
I need some help with this simple (actually not so simple for me..) tranformation.
I've got something like this:

Code:
<ul>
<li class="chapter">Chapter1</li>
<li class="sub">subchap1.1</li>
<li class="sub">subchap1.2</li>
<li class="chapter">Chapter2</li>
<li class="sub">subchap2.1</li>
...