Hello Hussein, First, thank you very much for your answer. I really appreciate.
I guess my explanations were not clear enough. The problem is that the SYSTEM URL that I give in the entity declaration is fake. It is substituted by a uri-resolver-catalog.xml file - that I call via an ANT target - which rewrites it in a correct URI. Therefore I get an Error dialog box in XMLmind which says "Server returned HTTP response code: 503 for URL: http://doc.solsoft.com/dtd/customization-guide-variables.ent Example: <!-- Resolve DTD URL system ID to local file --> <rewriteSystem systemIdStartString="http://doc.solsoft.com/dtd/" rewritePrefix="E:/svn/fusion/doc/variables/" /> Note: the entity files (e.g. customization-guide-variables.ent) are stored in the doc/variables directory. I really need to call these external entities since our user guides contain a lot of variables which are specific to my company (for all branding information etc.). In the docbook source document these entities are inserted like that: &entity-name; I was wondering if it would be possible to call the uri-resolver-catalog.xml in XMLmind so as to avoid the URL problem. I have read the HTML documentation that you indicated. The Include Tool seems very interesting. Thanks very much for your help Best Regards Vincent -----Message d'origine----- De?: Hussein Shafie [mailto:hussein at xmlmind.com] Envoy??: vendredi 25 mai 2007 11:00 ??: Vincent Quesniaux Cc?: xmleditor-support at xmlmind.com Objet?: Re: [XXE] Problem with Docbook files including declarations of entities Vincent Quesniaux wrote: > > > I have noticed that I could not open Docbook files which include > declarations of entities (see example below) when testing the XXE > personal edition 3.6.0. > I cannot reproduce this behavior. I can open files such as the following one provided that (1) it is well-formed and that (2) all entity files (e.g. http://doc.solsoft.com/dtd/customization-guide-variables.ent) really exist. May be you mean: "I get a warning dialog box saying that XXE will flatten my document because it does not support text entities"? This does not mean that you cannot open such files in XXE. > > Is this possible with the professional edition? If yes, how do you make it? No. If you need to work with ``XML variables'', we have an alternate (standard, based on XInclude) solution. Please take the time to read: * "Chapter 3. Tutorial: creating a modular document" http://www.xmlmind.com/xmleditor/_distrib/doc/user/tutorial_modular_document .html and especially "Extensive use of the "Copy as Reference" command" http://www.xmlmind.com/xmleditor/_distrib/doc/user/tutorial_modular_document .html#extensive_copy_as_reference * XXE Pro has an Include tool specially designed to make it very easy working with ``XML variables''. More information in "Quickly insert ``XML variables'' in your document using the Include tool" http://www.xmlmind.com/xmleditor/_distrib/doc/user/being_productive.html#inc lude_tool > Can you also set XXE to use customized docbook stylesheets (xsl)? > Sure. How to do it is explained here: "Customizing the XSL style sheets used by the above Convert commands" http://www.xmlmind.com/xmleditor/_distrib/doc/docbook/docbook_menu.html#docb ook_convert_menu > > --------------------- > > Example: > > > > <?xml version="1.0" encoding="utf-8"?> > > <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" > > "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" > > [ > > <!ENTITY % customization-guide-variables SYSTEM > "http://doc.solsoft.com/dtd/customization-guide-variables.ent" > > > %customization-guide-variables; > > ]> > > --------------------- >

