Validating docbook articles...

Ceri Davies ceri at FreeBSD.org
Mon Feb 16 13:47:06 UTC 2004


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

-- 
-------------- 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/20040216/6d8b5641/attachment.sig>


More information about the freebsd-doc mailing list