I just debugged why I got invalid XML and found out that the XSL Transformation creates an orphaned
tag (without the closing ) in some cases.

One such case is construct <strong>some text<strong><br />more text inside a table cell.
To reproduce, create a new node with the following html content:

<table>
<tbody>
<tr>
<td><strong>some text</strong><br />more text</td>
</tr>
</tbody>
</table>

Export this to docbook. If done in Firefox, this will create an invalid xml warning. Looking at the source will reveal an unclosed
tag in blace of the
. Unfortunately I don't understand the XSL well enough yet to fix this, but it seems that the
at this place is causing the problem.

Comments

Bodo Maass’s picture

What I meant to say is that the <br /> tag at this particular place is causing the problem, as it will be converted into an orphaned <para> tag.