Improper XHTML syntax when using text/html

Dear Editors,

  An unfortunate side-effect of using XML tools to generate Technical
Reports in the XHTML format is that most tools are not suited for this
task when it is desired that the document is delivered using the text/
html MIME Type, it is for example common that empty a elements like

  <a name="foo" id="bar"></a>

are generated using the empty-element syntax, i.e.

  <a name="foo" id="bar" />

which is not well-supported among text/html processors, it is for
example common that 

  <a name="foo" id="bar" /><span>...</span>

is considered to be

  <a name="foo" id="bar"><span>...</span></a>

which might not affect the visual representation of the document but
causes problems for a11y tools that attempt to post-process the DOM
generated for the document. This is one of the reasons why the XHTML
Recommendation advises against using such syntax. Recent documents
that are affected by such problems would be

  http://www.w3.org/TR/2004/PR-charmod-20041122/
  http://www.w3.org/TR/2004/CR-charmod-resid-20041122/
  http://www.w3.org/TR/2004/REC-xmlschema-0-20041028/
  http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/
  http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/
  http://www.w3.org/TR/2004/NOTE-ws-i18n-req-20041116/

Ways around these problems would be to use HTML instead of XHTML,
special XHTML output modi (for example, XSLT 2.0 is going to offer
<xsl:output method="xhtml" /> which might already work to the extend
necessary in experimental implementations) or using HTML Tidy on the
document. HTML Tidy is available via

  http://tidy.sf.net

and online services are available e.g. at 

  http://cgi.w3.org/cgi-bin/tidy

To check whether the relevant requirements are met, an experimental
tool is also available at

  http://qa-dev.w3.org/~bjoern/appendix-c/validator/

Example output would be

  http://qa-dev.w3.org/~bjoern/appendix-c/validator/?uri=http%3A%2F%2Fwww.w3.org%2FTR%2F2004%2FPR-charmod-20041122%2F

A future version of this tool might be integrated into the Markup
Validator but this is likely going to take some time. Please make sure
your documents are not subject to such errors before publication.

regards.
-- 
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 Thursday, 2 December 2004 13:32:10 UTC