On 03/29/2012 12:36 PM, Camille Bégnis wrote: > > we have noted XXE 5.2.0 behaves strangely when editing the attached > file, which is valid DocBook5. > XXE report it as valid, but whenever one tries to edit elements inside > the chapter (insert after para for example) the list of possible > elements behaves like if the document were invalid. >
Your document is indeed valid, but not well supported by XXE. --- <book version="5.0" xmlns="http://docbook.org/ns/docbook"> <title/> <info> <author> <personname/> </author> <pubdate/> </info> ... </book> --- Here is what we recommend in terms of book meta-info: --- 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 of "info(title)" *truly* *ambiguous*). Note that there is no such problem for the "title" and meta-info of a chapter or a section. --- All the other limitations of XXE related to RELAX NG are described is this document: XMLmind XML Editor - Support of RELAX NG Schemas http://www.xmlmind.com/xmleditor/_distrib/doc/rngsupport/index.html -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

