OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]