This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: XInclude problems
- From: Bob Stayton <bobs at caldera dot com>
- To: Kenneth Johansson <ke-joh at sectra dot se>
- Cc: Jirka Kosek <jirka at kosek dot cz>,DOCBOOK-APPS <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 04 Feb 2003 08:25:22 -0800
- Subject: Re: DOCBOOK-APPS: XInclude problems
- References: <3E3FDB91.71DD4E4E@kosek.cz><FPENIAKCJPMMKJHEOCMHOEEGCCAA.ke-joh@sectra.se>
On Tue, Feb 04, 2003 at 05:00:15PM +0100, Kenneth Johansson wrote:
> The reason I'm using OVERRIDE YES is because I couldn't get PSGML to find the dtd when using <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
>
> Now when I tried it without OVERRIDE YES, it works. It seems my catalog file was broken from the beginning. I think xml:base was set to "." .
>
>
> Trying again, after fixing some errors in IG-conrad-pacs.xml:
>
> ke-joh:149> xmllint --noout --xinclude --postvalid IG-conrad-pacs.xml
> IG-conrad-pacs.xml:5: Element book content does not follow the DTD
> Expecting ((title , subtitle? , titleabbrev?)? , bookinfo? , (dedication | toc |
> lot | glossary | bibliography | preface | chapter | reference | part | article
> | appendix | index | setindex | colophon)*), got (title chapter section chapter
> chapter )
> Document IG-conrad-pacs.xml does not validate
>
> What do I need to put in it to get it valid?
>
> IG-conrad-pacs.xml:
> <?xml version="1.0"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
>
>
> <book>
> <title>Installation Guide Conrad PACS interface</title>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="introduction.xml">
>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="conrad-pacs_if_basics.xml" />
> </xi:include>
>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="conrad-pacs_prequisites.xml" />
>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="software_installation.xml">
>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="conrad-pacs-installing_sw.xml" />
>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="conrad-pacs-configuration.xml" />
>
> </xi:include>
>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="conrad-pacs-known_issues.xml" />
>
> </book>
Your example file has nested <xi:include> elements.
You can't do that. The only thing that can go inside
an <xi:include> element is an <xi:fallback> element.
If you aren't using fallback, then all your <xi:include>
elements should be empty.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com