This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Using XIncludes
- From: Phil Weston <phil700 at xmsg dot com>
- To: <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 12 Feb 2004 11:49:54 +0000
- Subject: [docbook-apps] Using XIncludes
- Reply-to: phil700 at xmsg dot com
Hiya
Using Bob's explanation in Ch19 of his book I have:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "file:///c:/docbook/dtd/docbookx.dtd" [
<!ENTITY % global.entities SYSTEM "file:///c:/docbook/include/global.xml">
%global.entities;
<!ENTITY % entities SYSTEM "entities.xml">
%entities;
]>
<book>
<bookinfo>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="legalnotice.subdoc.xml" />
<bookinfo>
...
<book>
where "legalnotice.subdoc.xml" is:
<?xml version="1.0"?>
<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"file:///c:/docbook/dtd/docbookx.dtd" ]>
<legalnotice>
<title>Legal Notices</title>
<para>This is a bit of a legal notice</para>
</legalnotice>
Validating with xmllint gives me:
"validity error: No declaration for attribute xmlns:xi of element include"
1. Is XInclude Ok for use with xmllint?
2. Is my sytax correct? (I think it is since I cut/pasted the example)
3. Can I use any valid DocBook element as my doctype or is it restricted to the likes of <chapter>?
Thanks
Mart
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.