W3C home > Mailing lists > Public > www-html@w3.org > December 2002

Re: escaping escaping

From: Gannon J. Dick <gdick@verizon.net>
Date: Tue, 3 Dec 2002 17:22:12 -0600
Message-ID: <001001c29b22$d068d600$6ad42e04@home2>
To: <www-html@w3.org>

Well I'll be darn'ed.  I never thought this would work

The uploaded file was checked and found to be valid XHTML 1.1. This means
that the resource in question identified itself as "XHTML 1.1" and that we
successfully performed a formal validation using an SGML or XML Parser
(depending on the markup language used).

yada, yada, yada

Below is the source input I used for this validation:

   1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
   2: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   3: <head>
   4:   <title>XHTML 1.1 Test</title>
   5:   <meta http-equiv="Content-Type" content="application/xhtml+xml;
charset=utf-8" />
   6:
   7: </head>
   8:
   9: <body>
  10: <div id="main">
  11: 	<p>something in main</p>
  12:
  13:
  14: <div class="embed">
  15: <![CDATA[
  16: 	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  17: 	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  18: 		<head>
  19:   			<title>XHTML 1.1 Test</title>
  20:   			<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
  21: 		</head>
  22:
  23: 		<body>
  24: 			<div>
  25: 				<p>HTML in embed</p>
  26: 			</div>
  27: 		</body>
  28: 	</html>
  29: ]]>
  30: </div>
  31: </div>
  32: </body>
  33: </html>
Sure does look like sh*t in MSIE6 and Opera though.  Works right in Amaya
though.--Gannon J. Dick----- Original Message -----
From: "fantasai" <fantasai@escape.com>
To: <www-html@w3.org>
Sent: Tuesday, December 03, 2002 3:58 PM
Subject: Re: escaping escaping


>
> James Card wrote:
> >
> >> I don't think this is feasible, although I accept that
> >> the effect is highly desirable : you are asking CSS
> >> to affect the interpretation of the /semantics/ of
> >> an *ML document, whereas (AFAIK) CSS is restricted
> >> to affecting the /appearance/ of such documents.
> >
> > For a constrained set like (X)HTML where the valid elements and
> > attributes are known in advance, it is possible to accomplish this
> > effect using CSS.
>
> Actually, this would be asking CSS to affect the
> interpretation of the *syntax* of an SGML/XML
> document, and thus how the parser interprets
> character data in the document file. It is not
> possible to do any such thing using CSS, whether
> the document vocabulary is known in advance or
> not. Not only is there no valid property that
> does this, but, as Boris Zbarsky pointed out, the
> CSS processing model precludes any such behavior:
>
> http://www.w3.org/TR/REC-CSS2/intro.html#processing-model
>
> > A generic solution that would work with any well-formed XML file is
> > probably not possible.
>
> But it is possible.
> http://www.w3.org/TR/REC-xml#sec-cdata-sect
>
> ~fantasai
>
Received on Tuesday, 3 December 2002 18:22:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:53 GMT