Akagi K. wrote:
>
> I have a related query - we are working on DocBook 5, using the Maven
> plugin to Eclipse. We build PDF and html from the files, but when we
> open these files in XMLMIND, they are not recognized as docbook. The
> display says that they are 'without stylesheet' and displays them as
> plain xml files. (It does not provide the quasi WYSIWIG view, and shows
> xinclude commands only, for example, and does not display the referent
> file content.)
>
> Is there a way of getting XMLMIND to recognize docbook files created via
> Maven as DocBook files?
>
> Would be grateful if you could help.
> I will send you screenshots if the above is not fully explanatory.
>

--> The problem you describe typically happens with DocBook 4 (not 5) 
file not starting with a <!DOCTYPE>. This problem has never been 
reported for DocBook 5 files.



--> DocBook 5 files are detected using the following rules:

---
<detect>
  <and>

<rootElementNamespace>http://docbook.org/ns/docbook</rootElementNamespace>
   <not><rootElementLocalName>assembly</rootElementLocalName></not>
   <or>
    <rootElementAttribute localName="version" namespace="" value="5.0"/>
    <not><rootElementAttribute localName="version" namespace=""/></not>
   </or>
  </and>
</detect>
---

In plain English, this means:

1) The namespace of the root element of the file must be 
"http://docbook.org/ns/docbook";.

2) The local name of the root element of the file must not be "assembly".

3) The root element of the file must have a "version" attribute having a 
"5.0" value. Alternatively, it must not have a "version" attribute at all.

Now, this being said, do not hesitate to send us a sample DocBook 5 file 
of yours and we'll quickly give you a precise diagnostic.

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to