Thank you, but it still doesn't work.  

How do I request string substitution be supported within XXE and the
document conversion add-ons (I'm only interested in pdf)?

I support approximately 60 software developers using XXE to write a variety
of modular documents (we have 70 XXE licenses).  

XXE provides an easy to learn and use editor and, so far, does everything we
need except string substitution.  We produce different versions of documents
where the only differences are the names of several items.  Right now, we're
doing the substitution manually.

It would certainly help us and perhaps other XXE users if string
substitution were supported.

Thanks again.
clark


-----Original Message-----
From: [email protected]
[mailto:xmleditor-support-bounces at xmlmind.com] On Behalf Of Hussein Shafie
Sent: Monday, March 02, 2009 2:40 PM
To: Clark Karr
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] String substitution in XXE docbooks producing pdf

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.



 
--
XMLmind XML Editor Support List
xmleditor-support at xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support



Reply via email to