atom feed15 messages in org.oasis-open.lists.docbook-appsusing XIncludes
FromSent OnAttachments
Jens PorupFeb 17, 2005 9:26 pm 
Bob StaytonFeb 18, 2005 10:44 am 
Jens PorupFeb 22, 2005 7:25 pm 
John L. ClarkFeb 22, 2005 7:56 pm.pgp
Jens PorupFeb 22, 2005 8:09 pm 
John L. ClarkFeb 22, 2005 8:39 pm.pgp
Jens PorupFeb 22, 2005 8:42 pm 
Jens PorupFeb 22, 2005 9:08 pm 
Bob StaytonFeb 22, 2005 11:27 pm 
Jens PorupFeb 23, 2005 5:49 pm 
Bob StaytonFeb 23, 2005 6:12 pm 
Jens PorupFeb 23, 2005 10:01 pm 
Bob StaytonFeb 23, 2005 11:18 pm 
Jens PorupFeb 24, 2005 6:03 pm 
Bob StaytonFeb 25, 2005 12:51 pm 
Subject:using XIncludes
From:Jens Porup (je@porup.com)
Date:Feb 22, 2005 7:25:35 pm
List:org.oasis-open.lists.docbook-apps

On Fri, Feb 18, 2005 at 10:45:08AM -0800, Bob Stayton wrote:

I see three solutions:

c. Put the section in a separate file and use XInclude to include it in the main document. Then it is not redundant, and can be processed on its own as needed.

Hi Bob,

Thanks for your prior post.

I've been trying to get my subsection XInclude'd for a couple of days now, and it's just not happening.

Here's what my Xinclude looks like:

<xi:include href="automation/tablestuff.xdbk" xmlns:xi="http://www.w3.org/2001/XInclude"/>

The included file is generated programmattically (lots of tables), but the top looks like:

<?xml version="1.0" encoding='UTF-8'?> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "/usr/share/xml/docbook/schema/dtd/4.3/docbookx.dtd"> <chapter id="my_chapter"> <title> etc....

When I try to validate the doc with:

xmllint --noout --noent --xinclude --postvalid tech_spec.xml

It validates--there are no errors.

But when I xsltproc for both html and doc, I get the errors:

(HTML) No template matches xi:include in book.

(PDF) xi:include encountered in book, but no template matches.

The relative pathname is correct from the perspective of the build document. The documentation suggests this should be fine; I tried absolute pathnames as well, but this made no difference.

It looks like I've got this mostly working, but this final step eludes me.

Can you see what I'm doing wrong?

Jens