|
From: <las...@Su...> - 2001-05-18 15:57:50
|
Dan Mueth wrote: > = > On Thu, 17 May 2001, L=E1szl=F3 Kov=E1cs wrote: > = > > 1. The SGML parser is not perfect, there are DocBook tags it doesnt k= now > > about. This is easy to fix though, I already sent a couple of patches= to > > Daniel and I will send more. > = > I don't understand this, but I'm probably just being dumb. What sort o= f > tags does the SGML parser need to know about? Most tags are defined in= > the DocBook DTD, not in the parser. That is a question for DV, not for me. In the source file of the SGML parser there is a big table with the DocBook tags. If the tag is not there then it is not recognized by the parser. > Did you discuss this with DV? I thought the reason he put the SGML par= ser > into libxml2 was to handle these sort of docs and problems. I doubt he= > expected all SGML docs to have the encoding specified. No, he didnt expect them to have the encoding inside them, but the SGML parser routines take an extra parameter which is the encoding. As far as the SGML parser is concerned the encoding has to be passed in by the caller. As far as I see the situation the SGML parser is not able to detect the encoding. I think (seeing Norman's mail) that DocBook SGML does not have any way to specify the encoding in the file while XML in general specifies it in the header. This is why it can be detected in XML, it is not based on the content. Laszlo |