W3C home > Mailing lists > Public > spec-prod@w3.org > January to March 2006

Re: XHTML Style Sheet Questions

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 20 Jan 2006 10:07:40 +0100
To: "Kennedy, Richard T" <richard.t.kennedy@boeing.com>
Cc: <spec-prod@w3.org>
Message-ID: <pr91t1le8hn429u44sqjssqs0k37n3jmm4@hive.bjoern.hoehrmann.de>

* 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

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"
>          <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
>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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:42:17 UTC