|
From: Dan M. <d-...@uc...> - 2001-05-18 15:50:58
|
On Thu, 17 May 2001, L=E1szl=F3 Kov=E1cs wrote: > 1. The SGML parser is not perfect, there are DocBook tags it doesnt kno= w > about. This is easy to fix though, I already sent a couple of patches t= o > Daniel and I will send more. I don't understand this, but I'm probably just being dumb. What sort of tags does the SGML parser need to know about? Most tags are defined in the DocBook DTD, not in the parser. > 2. This is more serious, libxml2 expects either UTF-8 input or encoding > specified. There are loads of SGML docs out there that are not UTF-8 an= d > while in XML it is possible to specify the encoding in the header, this > is not in SGML (AFAIK). So libxml2 expects the encoding to be passed in > by the caller. This means we would need to come up with some way of > detecting the encoding based on the contents of the SGML file. Did you discuss this with DV? I thought the reason he put the SGML parse= r into libxml2 was to handle these sort of docs and problems. I doubt he expected all SGML docs to have the encoding specified. Dan |