Next in thread → Next in month →

Re: [docbook-apps] Use of xincludes vs. entities

From
Jirka Kosek <>
Date
2010-10-05T07:26:53+00:00
ID
Thread
Re: [docbook-apps] Use of xincludes vs. entities
Sam Fischmann wrote:

> Hm... For that, you could suggest a prefix attribute, where said
> prefix is prepended to all ids in the XIncluded document. This prefix
> would compound with nesting. On the other hand, you could dig yourself
> into a huge, terrible hole using that technique.

My experience shows that it is much easier to prepend only one prefix,
not to compound them. Prepended prefix should be unique to element
responsible for transclusion (ref in transclusions, xi:include in
XInclude). With XInclude there is a problem that you will have to write
custom XInclude processor and disable default XInclude processing which
is already available in many existing tools.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail:       http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------
Next in thread → Next in month →