Vera S. wrote:

I have found the following problem:

1.*Book* with element *info* are considered _valid _when the *info*
element is in the same XML file with the *book* element.

2.*Book* with element *info* are considered _invalid_ when the *info*
element is in an included XML file.

I have attached sample DocBook 5 files for the OK and KO case.

Could you please take a look and check whether this is a bug in XMLmind
XML Editor?

No, this is not a bug. The error reported by XMLmind XML Editor is an actual error.

Your KO/info.xml starts with:

---
<info>
   <legalnotice>
   ...
---

The DocBook 5 namespace is missing. Hence your "info" element is not the "info" element of DocBook 5.

If you modify KO/info.xml as follows, everything will work fine in KO/docbook5-bookSample.xml.

---
<info version="5.0" xmlns="http://docbook.org/ns/docbook";>
   <legalnotice>
   ...
---

Note that, according to the DocBook 5 grammar, element "info" may not be the root element of a standalone document. That's why 1) you cannot use XMLmind XML Editor to create a file like info.xml; 2) if you use XMLmind XML Editor to edit a file like info.xml, it will report an error.

However, this should not prevent you from putting all your legal notices in a separate file and then including this separate file.

Note that a facility like the Include tool is especially useful for putting all kinds of reusable snippets in a single, valid, documented, boilerplate file.

See tutorial (with screencast) "Inserting boilerplate content":

http://www.xmlmind.com/xmleditor/_tutorial/insert_boilerplate/index.html




--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to