dita-ot / dita-ot/org.dita.docbook

DocBook transformation generates invalid XML

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
XSLT
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

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:

``` bash
dita -input sequence.ditamap -f docbook
```

generates a `sequence.xml` file that begins as follows:

``` xml
Working in the garage

Changing the oil in your car
```

The map's `@title` attribute (``) is placed as character data in the `` element followed by a self-closing `` 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 ``:

``` xml
<article>
<title>Working in the garage

Changing the oil in your car
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.