- From: Nikodem <freyjkell@gmail.com>
- Date: Sun, 27 Jan 2008 12:15:11 +0100
- To: www-style <www-style@w3.org>
To have <... class="..."> in whole XML world, not only in [X]HTML.
@namespace ns "http://myserv/ns";
@classattr ns|class;
/* if more than one declared, last replaces others */
.abc{color:red}
<paragraph xmlns:ns="http://myserv/ns" class="abc">Abc</paragraph>
Optionally, there could be also <... style="...">:
@styleattr style all;
@styleattr print-style print;
/* 'print-style' is more specific than 'style', because it has been
declared later */
<mydoc>
<elmnt style="color:red" print-style="color:black">Abc</elmnt>
</mydoc>
--
Freyjkell
Received on Sunday, 27 January 2008 11:15:36 UTC