-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Generating DocBook output for the sample files included in distribution packages yields invalid XML.
For example, the output generated for sequence.ditamap in docsrc/samples via:
dita -input sequence.ditamap -f docbookgenerates a sequence.xml file that begins as follows:
<article>Working in the garage<para/>
<section remap="task" id="changeoil">
<title id="ttld9e9" remap="title">Changing the oil in your car</title>The map's @title attribute (<map title="Working in the garage">) is placed as character data in the <article> element followed by a self-closing <para/> tag, which triggers a validation error:
E [Xerces] Unexpected character data "Working in the garage".
The content of the parent element type is element only.
For valid XML, the map title should appear in the article <title>:
<article>
<title>Working in the garage</title>
<section remap="task" id="changeoil">
<title id="ttld9e9" remap="title">Changing the oil in your car</title>