W3C home > Mailing lists > Public > public-xhtml2@w3.org > September 2009

MAP content model correction (PR#10218)

From: <giecrilj@stegny.2a.pl>
Date: Wed, 16 Sep 2009 11:01:29 -0500
Message-Id: <200909161601.n8GG1Tiw010599@htmlwg.mn.aptest.com>
To: public-xhtml2@w3.org
CC: voyager-issues@mn.aptest.com
This is a multi-part message in MIME format.

------=_NextPart_000_0004_01CA32C2.D1054C30
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Regarding
<http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_map> XHTML
1.0 - DTDs:

Is

               <!ELEMENT map ((%block;
<http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_block#dtde
ntry_xhtml1-strict.dtd_block>  | form | %misc;
<http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_misc#dtden
try_xhtml1-strict.dtd_misc> )+ | area+)>

Should be

               <!ELEMENT map ((%Block;
<http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_block> )+
| area+)>

The present definition of %Block is:

        <!ENTITY % Block "(%block;
<http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_block#dtde
ntry_xhtml1-strict.dtd_block>  | form | %misc;
<http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_misc#dtden
try_xhtml1-strict.dtd_misc> )*">

Should be:

        <!ENTITY % Block "%block;
<http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_block#dtde
ntry_xhtml1-strict.dtd_block>  | form | %misc;
<http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_misc#dtden
try_xhtml1-strict.dtd_misc> ">

References to %Block; elsewhere should be replaced with references to
(%Block;)+

Motivation: better modularity, easier to implement a validator following the
DTD.

Please consider.

Note also that according to The global
<http://www.w3.org/TR/html401/struct/global.html#h-7.5.1>  structure of an
HTML document the BODY element cannot be empty, whereas the XHTML DTD allows
it to be, and it is not discussed among XHTML 1.0 - Differences with
<http://www.w3.org/TR/xhtml1/diffs.html>  HTML 4.  I think the difference is
unintended and the discrepancy should be removed.

Please fix ASAP.

Best regards,

Chris

 


------=_NextPart_000_0004_01CA32C2.D1054C30
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
pre
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.Stylwiadomocie-mail17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DPL link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Regarding </span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><a
href=3D"http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_=
map"><span
lang=3DEN-US>XHTML 1.0 - DTDs</span></a></span></font><font size=3D2 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>:<o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Is<o:p></o:p></span></font></p>

<pre><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><span
lang=3DEN>&lt;!ELEMENT <a name=3D"dtdentry_xhtml1-strict.dtd_map"
id=3D"dtdentry_xhtml1-strict.dtd_map">map</a> ((<a
href=3D"http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_=
block#dtdentry_xhtml1-strict.dtd_block">%block;</a> | form | <a
href=3D"http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_=
misc#dtdentry_xhtml1-strict.dtd_misc">%misc;</a>)+ | =
area+)&gt;<o:p></o:p></span></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Should be<o:p></o:p></span></font></p>

<pre><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><span
lang=3DEN>&lt;!ELEMENT map ((<a
href=3D"http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_=
block">%Block;</a>)+ | area+)&gt;<o:p></o:p></span></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>The present definition of %Block =
is:<o:p></o:p></span></font></p>

<pre><font size=3D2 face=3D"Courier New"><span lang=3DEN =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;!ENTITY <a
name=3D"dtdentry_xhtml1-strict.dtd_Block" =
id=3D"dtdentry_xhtml1-strict.dtd_Block">% Block</a> &quot;(<a
href=3D"http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_=
block#dtdentry_xhtml1-strict.dtd_block">%block;</a> | form | <a
href=3D"http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_=
misc#dtdentry_xhtml1-strict.dtd_misc">%misc;</a>)*&quot;&gt;<o:p></o:p></=
span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Should be:<o:p></o:p></span></font></p>

<pre><font size=3D2 face=3D"Courier New"><span lang=3DEN =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;!ENTITY % Block &quot;<a
href=3D"http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_=
block#dtdentry_xhtml1-strict.dtd_block">%block;</a> | form | <a
href=3D"http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_=
misc#dtdentry_xhtml1-strict.dtd_misc">%misc;</a>&quot;&gt;<o:p></o:p></sp=
an></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>References to %Block; elsewhere should be =
replaced with
references to (%Block;)+<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Motivation: better modularity, easier to =
implement a
validator following the DTD.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Please consider.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Note also that according to <a
href=3D"http://www.w3.org/TR/html401/struct/global.html#h-7.5.1">The =
global
structure of an HTML document</a> the BODY element cannot be empty, =
whereas the
XHTML DTD allows it to be, and it is not discussed among <a
href=3D"http://www.w3.org/TR/xhtml1/diffs.html">XHTML 1.0 - Differences =
with
HTML&nbsp;4</a>. &nbsp;I think the difference is unintended and the =
discrepancy
should be removed.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Please fix ASAP.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Best regards,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Chris<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0004_01CA32C2.D1054C30--
Received on Wednesday, 16 September 2009 19:14:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 February 2010 18:12:54 GMT