[Petal] Problems with HTML Parser

Paul Arzul patricka@mkdoc.com
Fri, 09 Aug 2002 14:37:01 +0100


William McKee wrote:
> 
> For example, if my CSS def'n is as follows:
> 
>             .head {
>                 font-size: 1.1em;
>                 font-weight: bold;
>                 font-family: "arial";
>             }
> 
> 
> When Petal interprets it, I get:
> 
>             .head {
>                 font-size: 1.1em;
>                 font-weight: bold;
>                 font-family: "arial";
>             }

about style sheet data[1] in html...

---8<---
Style sheet data (%StyleSheet; in the DTD) can be the content of
the STYLE element and the value of the style attribute. User
agents must *NOT* evaluate style data as HTML markup.

The case-sensitivity of style data depends on the style sheet
language.

Please note that style sheet data that is element content may
not contain character references, but style sheet data that is
the value of an attribute may contain them. The appendix
provides further information about specifying non-HTML data[3].
--->8---

from the HTML DTD[2]:

<!ENTITY % StyleSheet "CDATA" -- style sheet data -->

hth,

- p

[1] http://www.w3.org/TR/html401/types.html#type-style
[2] http://www.w3.org/TR/html401/sgml/dtd.html#StyleSheet
[3] http://www.w3.org/TR/html401/appendix/notes.html#notes-specifying-data