Re: [docbook-apps] Alternative to entities?

From
Jirka Kosek <>
Date
2005-01-17T18:51:40+00:00
ID
Thread
Re: [docbook-apps] Alternative to entities?
Dave Pawson wrote:

> Not speaking from experience.
> 
> If an xinclude aware processor is used, 
> could that stand in for XML entities Jirka?

Yep, you can use something like

<xi:include href="entities.xml#productname"/>

to pull element from external file entities.xml:

<root>
   <phrase xml:id="productname">SuperSoft v3.5</phrase>
   ...
</root>

But as you can see XInclude is quite verbose in this case and I'm not 
sure whether XXE can deal with such XIncludes.

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail:      http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------