|
From: Karl E. <ke...@gm...> - 2001-05-28 16:00:54
|
L=E1szl=F3 Kov=E1cs <las...@su...> writes: > I tried sgml2xml with mixed results. I initially tried it on RH 6.2 > and RH 7.0 and had loads of DTD related messages, every SGML tag was > printed as not known. I tried to installed the DTDs with the help of > Dan and Greg, but I couldnt get it right. Right approach. Every SGML application wants and have to read the DTD before processing the document instance (the ordinary .sgml file); sx (resp. sgml2xml) is a SGML application. > Then I installed RH 7.1 and gnome-doc-tools 2.0 and most of the > messages disappeared. Good. I've my db2xml script (available from http://www.suse.de/~ke/docbook-toys/) which hides all the nitty gritties; warning: lately the script was only tested on SuSE Linux 7.1 and 7.2beta. > Now I have a couple of "reference to internal SDATA entity"hellip" is > not allowed in XML" coming out from sgml2xml. Same for mdash. I > obviously do something wrong, but I dont know what. Any ideas? At this stage these are warnings only. Once you've the derived XML file make sure it starts with the DOCTYPE declaration. Than it will make use of the XML entity files coming with Norm's DocBook XML package. On SuSE you'll find the entities files here: /usr/share/sgml/db41xml/ent/iso-* > Considering that I didnt manage to get this working on on RH 6.2 and > RH 7.0 it might not be trivial, or I might just dig in the wrong > direction. Anyway we have to make it trivial for the user. Sure, but it isn't actually difficult if a db2xml script is in place; distributor should take care about this issue. > And the good news, as far as the encoding is concerned it works ok. Good :) > If I manage to actually build it on both Solaris and Linux, this might > be the way out as far as encoding is concerned. You'll work it out. IIRC, patches were also posted on the openjade list to work wround compilation issues. --=20 work : ke...@su... | ,__o : http://www.suse.de/~ke/ | _-\_<, home : ke...@gm... | (*)/'(*) |