This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: XInclude problems
- From: Kenneth Johansson <ke-joh at sectra dot se>
- To: Jirka Kosek <jirka at kosek dot cz>
- Cc: DOCBOOK-APPS <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 04 Feb 2003 17:00:15 +0100
- Subject: RE: DOCBOOK-APPS: XInclude problems
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>
thanks a bunch!
/Kenneth
> -----Original Message-----
> From: Jirka Kosek [mailto:jirka@kosek.cz]
> Sent: Tuesday, February 04, 2003 16:26
> To: Kenneth Johansson
> Cc: DOCBOOK-APPS
> Subject: Re: DOCBOOK-APPS: XInclude problems
>
>
> Kenneth Johansson wrote:
>
> > OVERRIDE YES
>
> Don't mix SGML and XML catalog files. OVERRIDE YES is used in SGML
> catalog files.
>
> > <?xml version="1.0"?>
> > <!DOCTYPE catalog
> > PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"
> >
> "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
> > <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
> > <group prefer="public"
> xml:base="file:///c:/tools/lib/docbook/xml/" >
> >
> > <public
> > publicId="-//OASIS//DTD DocBook XML V4.2//EN"
> > uri="42/docbookx.dtd"/>
> >
> > <system
> >
> systemId="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
> > uri="42/docbookx.dtd"/>
> >
> > </group>
> > </catalog>
>
> Yes, this looks good. You can delete first two lines with <!DOCTYPE...>
> as some implementations might want to fetch DTD for catalog file over
> network.
>
> > Should my xml-file have this DOCTYPE:
> >
> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "docbookx.dtd">
> >
> > or this
> >
> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
Later one is preffered because it's more interchangeable and works even
if you don't have catalog files but have Internet connection.
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz