Thomas K?bler wrote: > how can i configurate the xmlmind pro version to use my own docbook dtd > and our own pdf renderer?
What follows also applies to Standard Edition as well. I'll take DocBook 4.4 as an example of a DocBook DTD not included in our distribution: [1] Create a directory called mydocbook/ in XXE_user_preferences_dir/addon/ $ cd ~hussein/.xxe/addon/ $ mkdir mydocbook $ cd mydocbook [2] Create a subdirectory called dtd/ and unzip docbook-xml-4.4.zip in this directory $ mkdir dtd $ cd dtd $ unzip /tmp/docbook-xml-4.4.zip [3] in mydocbook/, create a file called mydocbook.xxe containing what follows: --- <?xml version='1.0' encoding='ISO-8859-1'?> <configuration name="DocBook" xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <include location="xxe-config:docbook/docbook.xxe"/> <!-- DOCTYPE-less documents such as the Chapter template will now be considered to be DocBook 4.4. --> <dtd publicId="-//OASIS//DTD DocBook XML V4.4//EN" systemId="dtd/docbookx.dtd" /> <!-- Redefine the document templates containing a DOCTYPE. --> <template name="Book" location="book.xml" /> <template name="Article" location="article.xml" /> </configuration> --- [4] Create document templates book.xml and article.xml in mydocbook/ book.xml --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> <book> <title></title> <chapter> <title></title> <section> <title></title> <para></para> </section> </chapter> </book> --- article.xml --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> <article> <title></title> <section> <title></title> <para></para> </section> </article> --- [5] Restart XXE. From now, all the new DocBook documents you are going to create will conform to the V4.4 DTD. And of course, you'll also be able to open existing DocBook documents conforming to the V4.4 DTD Note that this will not prevent you from opening DocBook documents conforming to older DTDs: 4.1.2, 4.2, 4.3. [6] From now, you'll probably have to refine the CSS style sheet for your DocBook DTD. For example, in the case of DocBook 4.4, a <variablelist> has a "spacing" attribute, a <package> element has been added, etc. All these will not be properly styled unless you refine the CSS. --> If you are using a customized version of DocBook, this changes nothing at all to what I have said. --> All this is described in http://www.xmlmind.com/xmleditor/_distrib/doc/configure/index.html, but this document is not organized like a cookbook which would include the "Using a customized DocBook DTD" recipe. --- PS: We don't have a PDF renderer. We would love having one. --- PS2: You can download the directory mydocbook/ I've prepared from --- http://www.pixware.fr/_download/tkuebler/mydocbook.zip 98656bytes, Wed Jul 06 06:14:29 PM CEST 2005 ---

