R. Sampath wrote: > I am testing the product to see if > DocBook files we have created previously can be opened, edited etc using > XMLmind. I need to create our product documents using DocBook. We have a > couple of documents that are based on DocBook DTD. But when I open them in > XMLMind, it opens the document but I am not able to shift between styles. It > only displays in xml mode. I want to be able to see the document in the word > processing mode as well. > Please let me know if it allows this.
Here's what happens: XMLmind XML Editor (XXE for short) does not detect your existing DocBook documents as being DocBook. It thinks they are generic XML documents. Why does this happen? Three possible reasons: [1] Your DocBook documents start with the following DOCTYPE: --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE book SYSTEM "docbookx.dtd"> <book> ... --- This DOCTYPE is missing a public ID. XXE expects: --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <book> ... --- OR [2] Your DocBook documents start with the following DOCTYPE: --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> <book> ... --- Your DTD is too old. the oldest DTD supported XXE of the box is v4.1.2. That is, something like: --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> <book> ... --- OR [3] Your DocBook documents do not have a DOCTYPE at all: --- <?xml version="1.0" encoding="UTF-8" ?> <chapter> ... --- XXE expects this: --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <chapter> ... --- If, for any reason, you cannot hand-edit your DocBook documents to fix the DOCTYPE, it's still possible to change the way XXE detects DocBook documents[*]. However I'll not tell you how right-away in this email, because the easiest and the cleanest approach is to hand-edit your DocBook documents as explained above. --- [*] If you are curious. Here's a glimpse of how it works: XXE_install_dir/addon/config/docbook.xxe contains the following DocBook v4 detection rules: --- <detect> <and> <rootElementNamespace xsi:nil="true" /> <dtdPublicId substring="true">DTD DocBook</dtdPublicId> <not> <dtdPublicId substring="true">Simplified</dtdPublicId> </not> </and> </detect> --- More information here: XMLmind XML Editor - Configuration and Deployment, Writing a configuration file for XXE, DTD example: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/dtd_example.html -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

