Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Feb 2004 13:06:59 +0000
From:      Ceri Davies <ceri@FreeBSD.org>
To:        Chuck Swiger <chuck@pkix.net>
Cc:        freebsd-doc@FreeBSD.org
Subject:   Re: Validating docbook articles...
Message-ID:  <20040216130659.GC617@submonkey.net>
In-Reply-To: <8D03FA54-4BA6-11D8-8D97-003065ABFD92@pkix.net>
References:  <8D03FA54-4BA6-11D8-8D97-003065ABFD92@pkix.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Tue, Jan 20, 2004 at 07:12:50PM -0500, Chuck Swiger wrote:
> 
> The W3C validator lets one override the character encoding, and doing  
> so lets the tool proceed, but this uncovers another possible issue:
> 
> Below are the results of attempting to parse this document with an SGML  
> parser.
> 	 1.  	Line 618, column 15: value of attribute "align" cannot be  
> "LEFT"; must be one of "left", "center", "right" (explain...).
>   <hr align="LEFT" width="100%" />
> 
> The XHTML spec defines the attributes of the hr element as:
> 
> <!ELEMENT hr EMPTY>
> <!ATTLIST hr
>   %attrs;
>   align       (left|center|right) #IMPLIED
>   noshade     (noshade)      #IMPLIED
>   size        %Pixels;       #IMPLIED
>   width       %Length;       #IMPLIED
>   >
> 
> ...so I'm willing to believe the W3C validator is right, and that  
> Docbook should be generating these attribute values in lower case.   

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.

Ceri

-- 

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAMMBzocfcwTS3JF8RAm91AJwIqUhyFDtxsKDAaHbG+Ng1fe1kPwCeJwZX
xg7nPeTbRoQau3wd/OfGD50=
=SGd7
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040216130659.GC617>