OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook] <book> won't accept "xmlns:xi" attribute


>I cannot get "include" to work in my XML document. Here's my snippet:
><?xml version='1.0'?>
><!DOCTYPE book SYSTEM "file:///O:/prog/docbook-4.5/dtd/docbook.dtd">

Why do you use an absolute path here?
Normally it is better to use the official public and system identifiers and 
resolve them through a catalog mechanism. See 
http://www.sagehill.net/docbookxsl/Catalogs.html for more details.

><book xmlns="http://docbook.org/ns/docbook";
>         xmlns:xi="http://www.w3.org/2001/XInclude";>
><xi:include href="chapter1.xml"/>
>Element include in namespace 'http://www.w3.org/2001/XInclude' encountered
>in book, but no template matches.

Which XML parser do you use? The xmllint programm understands the --xinclude 
option to resolve any XInclude elements. 
Use it in combination with --postvalid to resolve any XInclude elements and 
validate your XML document _after_ XInclude  processing. This should solve the 
above error message.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]