From owner-freebsd-doc@FreeBSD.ORG Mon Feb 16 13:30:04 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 0908E16A4CE; Mon, 16 Feb 2004 13:30:04 -0800 (PST) Received: from out008.verizon.net (out008pub.verizon.net [206.46.170.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD25243D1F; Mon, 16 Feb 2004 13:30:03 -0800 (PST) (envelope-from chuck@pkix.net) Received: from pkix.net ([68.160.202.196]) by out008.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040216213003.BYRR10003.out008.verizon.net@pkix.net>; Mon, 16 Feb 2004 15:30:03 -0600 Message-ID: <4031364A.2070708@pkix.net> Date: Mon, 16 Feb 2004 16:29:46 -0500 From: Chuck Swiger User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ceri Davies References: <8D03FA54-4BA6-11D8-8D97-003065ABFD92@pkix.net> <20040216130659.GC617@submonkey.net> In-Reply-To: <20040216130659.GC617@submonkey.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out008.verizon.net from [68.160.202.196] at Mon, 16 Feb 2004 15:30:02 -0600 cc: freebsd-doc@FreeBSD.org cc: thierry@pompo.net Subject: Re: Validating docbook articles... 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: Mon, 16 Feb 2004 21:30:04 -0000 Ceri Davies wrote: > On Tue, Jan 20, 2004 at 07:12:50PM -0500, Chuck Swiger wrote: [ ...questions about validating articles... ] > If I recall correctly, DocBook actually does generate them in lower > case, and then the W3C's tidy changes them to uppercase, which seemed > rather perverse to me. It's been some time since I looked at this > though, so I could be mistaken. A quick test (replacing tidy with /bin/cat) suggests that attributes are being generated in uppercase, although I would agree with you that tidy ought to do something when working in -asxml mode. :-) For what it's worth, there's a new version of W3C tidy which does generate the attributes in lower case and when used with docproj articles will validate properly. The www/tidy-devel port isn't quite a drop-in workaround, because: [ ... ] /usr/local/bin/tidy -wrap 90 -m -raw -preserve -f /dev/null -asxml article.html HTML Tidy: unknown option: p HTML Tidy: unknown option: r HTML Tidy: unknown option: s HTML Tidy: unknown option: r HTML Tidy: unknown option: v *** Error code 1 (ignored) ...tidy-devel doesn't understand the -preserve option. Something like the following, as www/tidy-devel/files/patch-console-tidy.c: --- console/tidy.c_orig Mon Feb 16 16:17:54 2004 +++ console/tidy.c Mon Feb 16 16:21:29 2004 @@ -440,6 +440,9 @@ if ( strcasecmp(arg, "xml") == 0) tidyOptSetBool( tdoc, TidyXmlTags, yes ); + else if (strcmp(arg, "preserve") == 0); + /* no-op for backwards compatibility */ + else if ( strcasecmp(arg, "asxml") == 0 || strcasecmp(arg, "asxhtml") == 0 ) { ...seems to do the trick. -- -Chuck