Clark Karr wrote: > How can I do string substitution in docbooks? > > I?ve hand edited a docbook file to define an entity for the substitution > (4^th line): > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" > > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" > > [<!ENTITY % howdy SYSTEM "Hi">] > >> > > <section> > > <title>String Substitutions</title> > > > > <para>I want to print "Hi" right here: %howdy . This doesn't work in XXE > > Convert Document.</para> > > </section> > > > > I use XXE Convert Document to create a pdf version, but the ?%howdy? > isn?t replaced with ?Hi?. >
I'm sorry not to be able to help you much, because I've forgotten almost everything about references to entities. I would say that what you have hand-written is not a valid reference to an internal entity (AKA string substitution). You should try something like this: --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ <!ENTITY howdy "Hi"> ]> <section> <title>String Substitutions</title> <para>I want to print "Hi" right here: &howdy;. This doesn't work in XXE Convert Document.</para> </section> --- Differences: * <!ENTITY howdy "Hi"> instead of <!ENTITY % howdy SYSTEM "Hi"> * &howdy; instead of %howdy Please note that we do not support references to entities in XMLmind XML Editor as a mechanism for composing modular documents, and this, even if this feature is integral part of the XML standard. Therefore, in principle, I'm not supposed to answer this kind of question.

