Re: [xml] xmlcatalog translating DTD PUBLIC identifier as filename in MSYS shell
- From: LRN <lrn1986 gmail com>
- To: xml gnome org
- Subject: Re: [xml] xmlcatalog translating DTD PUBLIC identifier as filename in MSYS shell
- Date: Sat, 26 Jan 2013 08:26:50 +0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 25.01.2013 13:06, John Brown wrote:
Hello All,
The glib-2.35.4 configure script executes the following command to
find the DocBook 4.1.2 DTD:
$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \ \"-//OASIS//DTD
DocBook XML V4.1.2//EN\"
where
XMLCATALOG = xmlcatalog
XML_CATALOG_FILE=c:/mingw/msys/1.0/etc/xml/catalog
In a CMD.exe command prompt: C:\Users\John\Downloads\Open_Source>
xmlcatalog c:/mingw/msys/1.0/etc/xm l/catalog "-//OASIS//DTD
DocBook XML V4.1.2//EN"
file:///c:/mingw/local/share/xml/docbook-xml-4.1.2/docbookx.dtd
In a MSYS shell:
$ xmlcatalog -v -v "c:/mingw/msys/1.0/etc/xml/catalog"
"-//OASIS//D TD DocBook XML V4.1.2//EN" Resolve pubID
-/C:/MinGW/msys/1.0/OASIS/DTD DocBook XML V4.1.2/EN 8908 Parsing
catalog c:/mingw/msys/1.0/etc/xml/catalog [1] Found public:
'-//OASIS//DTD DocBook XML V4.1.2//EN' 'file:///c:/mingw/local/sha
re/xml/docbook-xml-4.1.2/docbookx.dtd' Found system:
'http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd' 'file:/
//c:/mingw/local/share/xml/docbook-xml-4.1.2/docbookx.dtd' Found
public: '-//OASIS//DTD DocBook XML V4.5//EN'
'file:///c:/mingw/local/share /xml/docbook-xml-4.5/docbookx.dtd'
c:/mingw/msys/1.0/etc/xml/catalog added to file hash [2] No entry
for PUBLIC -/C:/MinGW/msys/1.0/OASIS/DTD DocBook XML V4.1.2/EN
Catalogs cleanup Free catalog entry
file:///c:/mingw/local/share/xml/ Free catalog entry -//OASIS//DTD
DocBook XML V4.1.2//EN Free catalog entry
http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd Free
catalog entry -//OASIS//DTD DocBook XML V4.5//EN Free catalog entry
c:/mingw/msys/1.0/etc/xml/catalog Free catalog entry
At [1] we see that the catalog file is parsed correctly and the
V4.1.2 DTD exists. Note what happens in [2] - the public identifier
is treated as a MSYS filename, so //OASIS//DTD DocBook XML V4.5//EN
becomes /C:/MinGW/msys/1.0/OASIS/DTD DocBook XML V4.1.2/EN
Since I must run the configure script under MSYS, and xmlcatalog
cannot find the DocBook DTD under MSYS, I cannot build the Glib man
pages. This is not the end of the world, but it is a bug and should
be fixed.
I'm fixing this by renaming /mingw/bin/xmlcatalog.exe to
/mingw/bin/mingw32-xmlcatalog.exe and using /usr/bin/xmlcatalog.exe
instead. Since /usr/bin/xmlcatalog.exe is a MSys application, it does
not have path mangling problems.
For example, see my mingw32 package for libxml2 [1] and its msys
variant [2].
[1]
http://lrn.no-ip.info/other/mingw/mingw32/libxml2/2.9.0-1/libxml2-2.9.0-1-mingw32-bld.tar.lzma
[2]
http://localhost/other/mingw/msys/libxml2/2.8.0-2/libxml2-2.8.0-2-msys-1.0.17-bld.tar.lzma
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJRA1sJAAoJEOs4Jb6SI2CwBoEIAMxHJ4yoeGHl9BQjlz4GSifA
sZCfge1wwPHPfHlXL+u0O2v7wsKzo7Iyc6e/T4gIrv1EW+gTvktBDdZGfGTUmKHL
60p/nfxCB6A3aF+IL4Ibboxij8iJI7OABuK7wCE6wqRhkFIAsF9AMBeO7cA2yp+9
yv8KfcwN+Uim0FD4W/Zv+4CHivSrHLDe5zy3ubxSQW+ILkljcc/rHUh5ElyxXLWp
yCVKdIym6VWsHSswnPPNy+o/Y0UnHVIZnd0at5tNk7neOH3/QOVV2+qQaOFAJAjX
bXN7cDyXUKbVe6YMWgOB1Z+l2wuOQcy3dRRNjqGcMlhnSHBwR3+b4m3HRcfBidw=
=ttCN
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]