I solved this by using debiandoc2text instead - not really an answer to your question, but perhaps does what you're trying to do.
Havoc Pennington On Sun, 7 Dec 1997, Oliver Elphick wrote: > Has anyone seen this problem? > > $ sgml2txt user.sgml > Processing file user.sgml > /usr/bin/nsgmls:<OSFD>0:1:26:W: cannot generate system identifier for > document > type "DEBIANDOC" > /usr/bin/nsgmls:<OSFD>0:1:26:E: reference to entity "DEBIANDOC" for which no > system identifier could be generated > /usr/bin/nsgmls:<OSFD>0:1:0: entity was defined here > /usr/bin/nsgmls:<OSFD>0:1:26:E: DTD did not contain element declaration for > document type name > /usr/bin/nsgmls:<OSFD>0:10:0:E: cannot continue because of previous errors > -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

