2

I am having some problems referencing some text from my xml files.

I have some xml documents (docbook 5.0 documents).

They all include a specific part from another xml file like this:

<xi:include href="path/to/myFile.xml" 
            xpointer="element(IDofSection)"/>

The referenced section has entities (like $productname;), that should be declared in the referencing document.

When I declare those entities in the referencing xml file, the referenced xml file does not inherit those entities.

I have searched all over the net but haven't found any solutions for this problem. Is what I'm doing in principle possible with xinclude? If not, how can I manage this problem with another techniques?

2rs2ts
  • 10,662
  • 10
  • 51
  • 95
  • I don't think it can work. See the third bullet here: http://www.sagehill.net/docbookxsl/ModularDoc.html#XincludeTextEntities. – mzjn Apr 18 '14 at 15:40

1 Answers1

0

This could be done through an entities file.

In this question DocBook macros? is an example shown of the entities solution.

Community
  • 1
  • 1
Verhagen
  • 3,885
  • 26
  • 36