nsgmls doesn't work

Hiroki Sato hrs at FreeBSD.org
Sun Mar 14 04:10:49 UTC 2004


Manuel Hernandez <manu at whitecats.mine.nu> wrote
  in <20040313.223233.74743457.manu at whitecats.mine.nu>:

manu> Yes, make lint works fine. Look at this:
manu> 
manu> $ cd /usr/doc/es_ES.ISO8859-1/books/faq && make lint
manu> -- output --
manu> /usr/local/bin/nsgmls -wempty -wunclosed -s -D \
manu> /usr/obj/usr/doc/es_ES.ISO8859-1/books/faq -c [all catalogs]

 Then, it is not a problem of nsgmls itself.  You need a lot of options
 like the command line shown when you do "make lint," to validate a FreeBSD's
 SGML document.

manu> And I try to validate now with:
manu> 
manu> $ nsgmls -wxml -s /usr/local/share/xml/dtd/xhtml/xhtml1.dcl index.html
manu> -- output --
manu> nsgmls:/usr/local/share/xml/dtd/xhtml/xhtml1.dcl:1:W: \
manu> SGML declaration was not implied
manu> nsgmls:/usr/local/share/xml/dtd/xhtml/xhtml1.dcl:31:27:W: \
manu> characters in the document character set with numbers exceeding \
manu> 65535 not supported
manu> 
manu> Is this output correct?

 Yes.  Since nsgmls does not support >65535 unicode characters, these are
 not errors.  An SGML declaration for such tools (xml1n.dcl) is
 included in textproc/xhtml-modularization, so you can use it instead like:

 % nsgmls -c /usr/local/share/xml/dtd/xhtml/xhtml.soc \
          -s /usr/local/share/xml/dtd/xhtml-modularization/xml1n.dcl \
          index.html

 I think there will be no warning if the document is valid.  Or, you can
 use onsgmls in textproc/opensp, which supports >65535 unicode characters.
 
 Note that "SGML declaration was not implied" can be safely ignored.
 That indicates a valid XML document does not include any SGML
 declarations.  To suppress the warning completely, use DTDDECL or
 SGMLDECL in the catalog file.

-- 
| Hiroki SATO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20040314/c2729ea7/attachment.sig>


More information about the freebsd-doc mailing list