Yes, there is an easier way, but it requires some coordination at runtime.
You can put your entity declarations into a central file referenced by all
your documents. Then you can use an XML Catalog at runtime to map the
identifier to an entity collection file with the same names but different
text values, depending on which profile you are running. The coordination
part is in selecting a different catalog at runtime to match the profile
you are running.
Here is some more info on this approach:
http://www.sagehill.net/docbookxsl/ModularEntities.html
http://www.sagehill.net/docbookxsl/Catalogs.html
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From: "Samuel Wright" <>
To: <>
Sent: Wednesday, October 17, 2007 4:12 AM
Subject: [docbook-apps] profiling and entities -
> Hi All,
>
> I'm trying to publish three very similar documents, from one master.
> One can do this with profiling,
>
> <section os="win">
> </section>
> <section os="lin">
> </section>
>
> and then publishing once for each profile. But this gets more
> complicated if I want to use an entity, and reuse only one lot of
> text:
>
> This works, but is a LOT of overhead
>
> <section>
> <para> sfdfssdf sdfsfsdf sdfdsfdsf <phrase
> os="lin">&MYENT_LINUX</phrase><phrase
> os="win">&MYENT_WINDOWS</phrase></para>
> </section>
>
> Is there someway to control entities with profiling
>
> I could use
>
> <section>
> <para> sfdfssdf sdfsfsdf sdfdsfdsf &MYOS; </para>
> </section>
>
> but if you use many variables it is a pain to change them each time,
> and could induce errors.
>
> Any thoughts on the best way to do this?
>
> Thanks
> Sam,
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
>
>