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 16:58:20 UTC