Date: Sun, 14 Mar 2004 13:07:59 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: manu@whitecats.mine.nu Cc: freebsd-doc@FreeBSD.org Subject: Re: nsgmls doesn't work Message-ID: <20040314.130759.102435753.hrs@eos.ocn.ne.jp> In-Reply-To: <20040313.223233.74743457.manu@whitecats.mine.nu> References: <20040311204542.GA1418@whitecats.mine.nu> <20040313.015922.45211871.hrs@eos.ocn.ne.jp> <20040313.223233.74743457.manu@whitecats.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Sun_Mar_14_13_07_59_2004_606)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Manuel Hernandez <manu@whitecats.mine.nu> wrote in <20040313.223233.74743457.manu@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 ----Security_Multipart(Sun_Mar_14_13_07_59_2004_606)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAU9qiTyzT2CeTzy0RAmS8AKDCp+8aE2FL/ACvbT75otNznWw4rwCgxFsd qZKYEyQsZsh6pzIRd6JhYJE= =ju9H -----END PGP SIGNATURE----- ----Security_Multipart(Sun_Mar_14_13_07_59_2004_606)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040314.130759.102435753.hrs>