Jean Jordaan wrote:
> 
> According to Dave Pawson, it should be OK to have 'info' as a child of
> 'book'. XXE doesn't allow it, though. This is with this kind of doc:
> 
> <book version="5.0" xmlns="http://docbook.org/ns/docbook";
> xmlns:xlink="http://www.w3.org/1999/xlink";
> xmlns:xi="http://www.w3.org/2001/XInclude";
> xmlns:svg="http://www.w3.org/2000/svg";
> xmlns:m="http://www.w3.org/1998/Math/MathML";
> xmlns:html="http://www.w3.org/1999/xhtml";
> xmlns:db="http://docbook.org/ns/docbook";>
> 

The RELAX NG schema allows you to have either
* an <info> possibly containing a <title>
* OR a <title> followed by an <info> which  cannot itself contain a <title>.

The problem is that we have found a nasty bug related to the <info> of a 
<book> (there is no problem with the <info> of a <chapter>, a <section>, 
etc).

Here's an excerpt of the changes.html file of next version of XXE:

---
When replacing the title element of a DocBook 5 book, the Edit tool 
randomly suggested the following pairs of element templates: 
info(no_title), info(title) and info(no_title), info(no_title). The Edit 
tool now always suggests info(no_title), info(title).

If you need to add meta-info to a DocBook 5 book, please restrict 
yourself to replacing its title element by an info(title) template. Do 
not replace the title element by info(no_title) and do not insert 
info(no_title) after the title element as this would cause XMLmind XML 
Editor to automatically switch to lenient mode.

This limitation is specific to the title and meta-info of a book 
(because the title element is optional in info(title) which makes the 
content model truly ambiguous). There is no such problem for the title 
and meta-info of a chapter or a section.
---

For now, you need to replace the bare <title> by an <info> containing a 
<title> using a text editor.


Reply via email to