[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: Handling placeholders for certain texts..
On Wed, Jun 15, 2005 at 03:48:13PM -0700, Rajal Shah <rajal@meshsoftware.com> wrote a message of 25 lines which said: > We have a bunch of text - where the actual information is provided > much much later in the process.. These texts are inserted at > numerous places in all the XML books and we need to insert > placeholder for them. What is the best way to handle them in > docbook? Is there a way to define placeholders for them and then > assign the final/actual value for them to be replaced with? You can use a pre-processor (M4, Cheetah, etc) but the most XMLesque way is to use entities. The Docbook file: <?xml version="1.0"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"[ <!ENTITY % my_entities SYSTEM "myentities.xml"> %my_entities; ]> <article> <para>The released software can be downloaded from &url;.</para> </article> The included myentities.xml: <!ENTITY url "http://www.example.org/downloads">
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]