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


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


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