Griffin, David wrote: > > > Previously my documents that did _not_ have a DocBook declaration opened > with the full DocBook style sheet. Now with the advent of Ver. 4.5.1 > they do not. The document requires the declaration: > > > > <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" > > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> > > > > to evoke the style sheet. > > > > Is there a way to overcome this without adding the declaration to my > legacy documents that opened just fine is versions prior to 4.5.1? >
Yes, but you'll have to directly modify docbook.xxe or better, to create a clean customization of this configuration. See the quick and dirty procedure below. > > Does it have anything to do with DocBook 5.0? > No, not all. This regression has been introduced by XXE v4.0.0 (July 21, 2008). It is documented here: http://www.xmlmind.com/xmleditor/changes.html#porting_to_xinclude Procedure: [1] Edit XXE_install_dir/addon/config/docbook/docbook.xxe using a text editor. [2] Replace: --- <detect> <and> <rootElementNamespace xsi:nil="true" /> <dtdPublicId substring="true">DTD DocBook</dtdPublicId> <not> <dtdPublicId substring="true">Simplified</dtdPublicId> </not> </and> </detect> --- by: --- <detect> <and> <rootElementNamespace xsi:nil="true" /> <not> <dtdPublicId substring="true">Simplified</dtdPublicId> </not> <or> <dtdPublicId substring="true">DTD DocBook</dtdPublicId> <and> <schemaType xsi:nil="true" /> <or> <rootElementLocalName>part</rootElementLocalName> <rootElementLocalName>chapter</rootElementLocalName> <rootElementLocalName>refentry</rootElementLocalName> <rootElementLocalName>appendix</rootElementLocalName> <rootElementLocalName>glossary</rootElementLocalName> <rootElementLocalName>section</rootElementLocalName> <rootElementLocalName>sect1</rootElementLocalName> <rootElementLocalName>sect2</rootElementLocalName> <rootElementLocalName>sect3</rootElementLocalName> <rootElementLocalName>book</rootElementLocalName> <rootElementLocalName>article</rootElementLocalName> </or> </and> </or> </and> </detect> <dtd publicId="-//OASIS//DTD DocBook XML V4.5//EN" systemId="dtd/V4.5/docbookx.dtd" /> --- [3] Save docbook.xxe. [4] Restart XXE. --- PS: I've attached the modified docbook.xxe to this email. -------------- next part -------------- A non-text attachment was scrubbed... Name: docbook.xxe Type: text/xml Size: 5696 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20100225/348c5a2e/attachment.xml

