Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2004 21:27:14 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To:        Chuck Swiger <cswiger@mac.com>
Cc:        Alex Dupre <ale@FreeBSD.org>
Subject:   Re: Validating docbook articles...
Message-ID:  <xzpwu6da6e5.fsf@dwp.des.no>
In-Reply-To: <403A53E1.2040305@mac.com> (Chuck Swiger's message of "Mon, 23 Feb 2004 14:26:25 -0500")
References:  <8D03FA54-4BA6-11D8-8D97-003065ABFD92@pkix.net> <20040216130659.GC617@submonkey.net> <4031364A.2070708@pkix.net> <20040222181114.GB32524@graf.pompo.net> <40390248.1060104@pkix.net> <4039D0FE.3010905@FreeBSD.org> <xzpd686huyw.fsf@dwp.des.no> <403A53E1.2040305@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Swiger <cswiger@mac.com> writes:
> How does one generate proper SystemLiterals per:
> [...]
> Are these entities published via a URI, or does one need to refer to a
> local path?

The system literal can be anything as long as you have a catalog that
reveals the real location of the external entity.  The usual practice
for entities that rarely change is to create an online repository and
let the system literal point to that.  In this case though you might
as well use an empty or intentionally meaningless string.

You'll want to generate a catalog that looks like this:

<?xml version=3D'1.0' encoding=3D'iso-8859-1'?>
<!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=3D'urn:oasis:names:tc:entity:xmlns:xml:catalog'>
  <nextCatalog catalog=3D'/usr/local/share/xml/catalog'/>
  <public publicId=3D'-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN'
    uri=3D'file:///path/to/manpages.ent'/>
  <!-- ... -->
</catalog>

and set the XML_CATALOG_FILES environment variable to point to it.
although this is not documented in the xmllint man page, it is
documented in the xsltproc manual page and I believe that xmllint
understands it too (since they both use libxml2 to parse and validate
XML)

As a stopgap measure, xmllint and xsltproc understand SGML catalogs
and will obey the SGML_CATALOG_FILES environment variable when invoked
with the --catalogs option.


DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpwu6da6e5.fsf>