XSL Transformation creates orphan <para> in same cases

Bodo Maass - November 1, 2008 - 00:02
Project:Export DocBook
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

Bodo Maass - November 1, 2008 - 00:07

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.

 
 

Drupal is a registered trademark of Dries Buytaert.