Re: Bug#65862: sp: nsgmls gives warning message for *any* XML document
Julian Gilbey <J.D.Gilbey@qmw.ac.uk> writes:
> > Annoying. I wonder -- I think it may be a bug in the xml.dcl file.
> > Have you tried it with opensp ?
>
> No, I haven't.
Same results.
Under these conditions you will get the error:
> nsgmls -wxml -wall -gues /usr/lib/sgml/declaration/xml.dcl qaml-faq.xml
nsgmls:/usr/lib/sgml/declaration/xml.dcl:1:W: SGML declaration was not implied
> onsgmls -wxml -wall -gues /usr/lib/sgml/declaration/xml.dcl qaml-faq.xml
onsgmls:/usr/lib/sgml/declaration/xml.dcl:1:W: SGML declaration was not implied
This is actually legitimate. Not using an implicit declaration is
actually an error in XML! Go figure.
You have two alternatives:
1) Run nsgmls or onsgmls without -wxml
> nsgmls -wall -gues /usr/lib/sgml/declaration/xml.dcl qaml-faq.xml
> onsgmls -wall -gues /usr/lib/sgml/declaration/xml.dcl qaml-faq.xml
2) Run onsgmls given a DTD that has the proper DTDDECL defined in the
SGML catalog:
> onsgmls -wxml -wall -gues qaml-faq.xml
Sorry. That's the way the standard works. This is not an OpenSP or
SP bug.
I think it's kinda dodgy that psgml mode doesn't do the right thing,
however. On the validation step, I think, psgml should probably just
not use -wxml (-wall is ok though). Someone wanna file a psgml bug on
that?
--
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>
Reply to: