This is the mail archive of the sgml-tools@via.ecp.fr mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: experimental release of linuxdoc-tools (based on sgml-tools



joh@gmx.net said:
> Are there any ideas how to parse the document type out of the SGML
> yet? Or is grep'ing for "DocBook" through the first lines of the file
> considered as sufficient?

I haven't checked whether Python's built-in SGML module will parse the 
document type (I don't think it does), but you definitely need the full thing 
- the LSB proposal suggests separate catalogs for separate DTD's, and you need 
the full FPI of the DTD in order to find the correct catalog (because there 
would be different catalogs for DocBook 3.0, 3.1 and 4.0, for example).


-- 
Cees de Groot               http://www.cdegroot.com     <cg@cdegroot.com>
                            http://sgmltools-lite.sourceforge.net/
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B
Forge your CipherSaber and list it: http://www.xs4all.nl/~cg/ciphersaber/


PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]