Re: [xml] xmlcatalog translating DTD PUBLIC identifier as filename in MSYS shell

Hello LRN,

 In a CMD.exe command prompt: 
 xmlcatalog c:/mingw/msys/1.0/etc/xm l/catalog "-//OASIS//DTD
 DocBook XML V4.1.2//EN" 

 In a MSYS shell:

 $ xmlcatalog -v -v  "c:/mingw/msys/1.0/etc/xml/catalog"
 "-//OASIS//DTD DocBook XML V4.1.2//EN" Resolve pubID

[2] No entry
 for PUBLIC -/C:/MinGW/msys/1.0/OASIS/DTD DocBook XML V4.1.2/EN 
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

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.

It works,and I can even use '/etc/xml/catalog' as the filename
instead of 'c:/mingw/msys/1.0/etc/xml/catalog'. Thanks.

John Brown.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]