From owner-freebsd-doc@FreeBSD.ORG Sat Mar 13 20:10:49 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A90516A4CE for ; Sat, 13 Mar 2004 20:10:49 -0800 (PST) Received: from smtp.eos.ocn.ne.jp (eos.ocn.ne.jp [211.6.83.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE74C43D4C for ; Sat, 13 Mar 2004 20:10:48 -0800 (PST) (envelope-from hrs@FreeBSD.org) Received: from delta.allbsd.org (p60156-adsao12honb4-acca.tokyo.ocn.ne.jp [220.96.142.156]) by smtp.eos.ocn.ne.jp (Postfix) with ESMTP id ADB7911AA; Sun, 14 Mar 2004 13:10:47 +0900 (JST) Received: from localhost (alph.allbsd.org [192.168.0.10]) by delta.allbsd.org (8.12.9p2/8.12.9) with ESMTP id i2E4AaA2028274; Sun, 14 Mar 2004 13:10:37 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Sun, 14 Mar 2004 13:07:59 +0900 (JST) Message-Id: <20040314.130759.102435753.hrs@eos.ocn.ne.jp> To: manu@whitecats.mine.nu From: Hiroki Sato 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> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 4.0.62 on Emacs 21.3.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Sun_Mar_14_13_07_59_2004_606)--" Content-Transfer-Encoding: 7bit cc: freebsd-doc@FreeBSD.org Subject: Re: nsgmls doesn't work X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2004 04:10:49 -0000 ----Security_Multipart(Sun_Mar_14_13_07_59_2004_606)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Manuel Hernandez 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)----