Subject: Re: misc/34542: Mismatch of DTD's URL
To: None <firstname.lastname@example.org, email@example.com>
From: Hiroki Sato <hrs@NetBSD.org>
Date: 09/18/2006 03:26:39
Content-Type: Text/Plain; charset=us-ascii
Klaus Heinz <firstname.lastname@example.org> wrote
k.> email@example.com wrote:
k.> > In developer.xml <URL:http://www.netbsd.org/People/developers.xml>
k.> > http://www.NetBSD.org/XML/htdocs/lang/share/xml/website-netbsd.dtd
k.> > Real URL:
k.> > http://www.NetBSD.org/share/xml/website-netbsd.dtd
k.> > So, I can't process those XML files.
k.> This was done by design. The public identifier in our documents is _not_
k.> meant to be used for downloading a DTD through a network.
k.> In pkgsrc, various catalog files, managed by xmlcatmgr, are responsible
k.> for maintaining a mapping from this identifier to the actual local DTD
k.> I do not remember the exact reason hrs@ introduced this separate XML
k.> URL namespace.
Yes. This is because the URLs are used as an abstraction layer
to access a file from XML documents. For example,
is for a localized DTD since it includes /lang/ part. The /lang/ part
is resolved by XML catalog file. This is needed for preventing the
documents from being bound by the actual directory structure.
Without it, relocation of the document files becomes very difficult.
In short, tools which does not support XML catalog cannot process
XML files in the htdocs tree. XML support of WWW browser is very
limited, so you cannot get meaningful results by using it even if
the URLs can actually be accessed by HTTP.
| Hiroki SATO
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
-----END PGP SIGNATURE-----