This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: DOCBOOK: can't grok nsgmls complaint
- From: Bob Stayton <bobs at sco dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 7 May 2003 15:32:40 -0700
- Subject: [docbook-apps] Re: DOCBOOK: can't grok nsgmls complaint
Maybe this is a record for elapsed time between
a posting (January) and a response (May), but
I discovered an answer today. The original
mail was about nsgmls giving a useless warning
when validating an XML file.
> validating it with nsgmls gives this complaint:
>
> $ nsgmls -s -wxml /usr/share/sgml/declaration/xml.dcl GemBook.xml
> nsgmls:/usr/share/sgml/declaration/xml.dcl:1:W: SGML declaration was not implied
I tried onsgmls (from OpenSP) and got the same warning.
I like using onsgmls for validation because it is more
helpful in locating the source of a problem than xmllint
(it gives line numbers!).
It turns out that onsgmls has more options, including the
ability to turn off individual warnings. So this command
validates XML without the warning:
onsgmls -s -wxml -wno-explicit-sgml-decl xml.dcl myfile.xml
You have to put the -wxml option before the -wno-explicit-sgml-decl
option for it to work. Then you get beautiful silence if
the file is valid.
Now the solution is on record and the next time I google for
it I will find it. 8^)
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org