Re: XHTML Style Sheet Questions

* Kennedy, Richard T wrote:
>[1] The XHTML Style sheet generates the following html tag:
>    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
>   The HTML Compatibility Guideline C.7 states:
>        "Use both the lang and xml:lang attributes when specifying the
>language of an element."
>   Should the XHTML Style sheet be modified to add the xml:lang
>attribute?

This is probably an error (Tidy would fix it, see below).

>[2] The XHTML Style sheet generates empty elements without a space
>before the trailing / and >,
>    e.g., <link rel="stylesheet" type="text/css"
>href="http://www.w3.org/StyleSheets/TR/W3C-WD.css"/>,
>          <hr/>, <br/>
>   The HTML Compatibility Guideline C.2 states:
>       "Empty Elements Include a space before the trailing / and > of
>empty elements, e.g. <br />, <hr /> and 
>       <img src="karen.jpg" alt="Karen" />. Also, use the minimized tag
>syntax for empty elements, e.g. <br />, 
>       as the alternative syntax <br></br> allowed by XML gives
>uncertain results in many existing user agents."
>   Should the XHTML Style sheet be modified to add a space before the
>trailing / and > in empty elements?

The result of the XHTML transformations should not be used with legacy
user agents; if these compatibility guidelines are a concern, use the
HTML transformations or post-process the result with e.g. HTML Tidy,
http://www.w3.org/mid/41ba13bd.259284953@smtp.bjoern.hoehrmann.de has
some details.

>[3] The XHTML Style sheet generates anchor tags that contain the shape
>attribute without the coords attribute.
>    e.g., <a rel="disclosure"
>href="http://www.w3.org/2004/01/pp-impl/37584/status" shape="rect"> ....
></a>
>          <a
>href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosur
>e" shape="rect"> ... </a>
>    Based on my understanding of the XHTML Client-Side Image Map Module 
> 
><http://www.w3.org/TR/2002/WD-xhtml2-20021211/mod-csImgMap.html>, having
>a shape attribute without the
>         coords attribute is meaningless.
>   Should the XHTML Style sheet be modified to not insert a shape
>attribute without the corresponding coords
>        attribute?

The shape attribute is defaulted in the XHTML DTDs to "rect", I guess
the insertion of such an attribute is a side-effect of DTD processing;
it doesn't really matter whether it's there or not.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Friday, 20 January 2006 09:07:03 UTC