Skip to content

DocBook transformation generates invalid XML #1

@infotexture

Description

@infotexture

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 docbook

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions