I've created StringSubstitution.xml, a file containing the XML copied
verbatim from my previous email. See attachment.

I managed to open this file in XXE 4.2.1 and it works fine. See attached
screenshot.

Using "Convert to PDF" also works fine. See attachment.

XXE v4 fully supports references to internal entities (string
substitutions), but as a legacy mechanism, not as a modern, structured,
 technique. For a handy alternative to references to internal entities,
please take the time to read:

* "Extensive use of the "Copy as Reference" command"
http://www.xmlmind.com/xmleditor/_distrib/doc/user/tutorial_modular_document.html#extensive_copy_as_reference

* "Quickly insert ``XML variables'' in your document using the Include
tool"
http://www.xmlmind.com/xmleditor/_distrib/doc/user/being_productive.html#include_tool


Clark Karr wrote:
> 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: xmleditor-support-bounces at xmlmind.com
> [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
> 
> 
>  
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: StringSubtitution.pdf
Type: application/pdf
Size: 5108 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20090303/13f044d0/attachment.pdf
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StringSubtitution.png
Type: image/png
Size: 55550 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20090303/13f044d0/attachment.png
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StringSubtitution.xml
Type: text/xml
Size: 345 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20090303/13f044d0/attachment.xml
 

Reply via email to