This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XInclude problems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]