imk / docbkx-tools

Automatically exported from code.google.com/p/docbkx-tools
0 stars 0 forks source link

xi:include content not being processed #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have 2 source documents: intro.xml and chapter1.xml. intro.xml uses 
<xi:include href="chapter1"/> to reference chapter1.xml for the generation of 
the document.

However, all I see in the generated docbook is the unprocessed content of 
chapter1.xml. I was expecting to see the processed chapter1 included at the 
point in intro.xml where I used the <xi:include/>

You can reproduce this by unzipping the attached file and running "mvn 
pre-site".

This is using Maven 3.0.3, on WinXP, version 2.0.13 of Docbkx.
system?

Original issue reported on code.google.com by gordon.m...@gmail.com on 27 Sep 2011 at 7:55

Attachments:

GoogleCodeExporter commented 9 years ago
Hello,

sorry for the delay I was in holidays :)

What I did to get it working:
- modify pom.xml in order to transform only the main xml document
<configuration>
  <includes>intro.xml</includes>
  ...
</configuration>
- modify chapter1.xml in order to add namespaces
<chapter id="intro" version="4.4"  xmlns="http://docbook.org/ns/docbook"
        xmlns:xlink="http://www.w3.org/1999/xlink"
        xmlns:xi="http://www.w3.org/2001/XInclude"
        xmlns:db="http://docbook.org/ns/docbook" xml:lang="en"  >

It sounds to work with these modifications

Regards,
Cedric,

Original comment by MimilO...@gmail.com on 4 Oct 2011 at 2:21

GoogleCodeExporter commented 9 years ago
Thanks Cedric, that has cleared up the problem for me. 

Regards,
--Gordon

Original comment by gordon.m...@gmail.com on 5 Oct 2011 at 3:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by MimilO...@gmail.com on 5 Oct 2011 at 4:25