W3C home > Mailing lists > Public > www-style@w3.org > June 1998

XML + CSS (Was: More complex page patterns?)

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Wed, 10 Jun 1998 19:25:38 -0400
To: <www-style@w3.org>
Message-ID: <000a01bd94c7$13660de0$a56c9bd0@jelks.jic.com>
Frank Boumphrey wrote:

> I would like to see an <XML:STYLE></XML:STYLE> reserved element. this could
> be placed after the prolog and probably also after the root element.
>
> <XML:STYLE>
>
> para{
>     font-size:12pt;
> }
>
> .code{
>     background-color:#C0C0C0;
>     white-space:pre;
>     font-family:'courier new',monospace;
> }
>
> </XML:STYLE>

Something along these lines would be nice for _embedded_ styles.  (You could add
"display: block" for "para" ...  :)

But your latter example (.code) implies a CLASS attribute on some item(s).  Does
this mean DTDs of documents wanting CSS styling need to be modified to have ID
and CLASS on every item that needs it -- *IF* you want a valid document?

It's nice that in HTML every element has ID and CLASS "built in".  How can we
provide that same level of functionality in XML without breaking validation?  If
we end up putting STYLE, ID, and CLASS attributes in DTDs, doesn't that start to
lead us down the road of bringing presentation into where it doesn't belong?  Or
can they somehow be "invisible" to DTDs?

/Jelks


======================
 Jelks Cabaniss
 jelks@jelks.nu
 http://www.jelks.nu/
======================
Received on Wednesday, 10 June 1998 19:22:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:55 GMT