Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocBook transformation generates invalid XML #1

Open
infotexture opened this issue Mar 13, 2016 · 0 comments
Open

DocBook transformation generates invalid XML #1

infotexture opened this issue Mar 13, 2016 · 0 comments
Labels

Comments

@infotexture
Copy link
Member

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>
@infotexture infotexture transferred this issue from dita-ot/dita-ot Dec 9, 2018
@infotexture infotexture added the bug label Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant