W3C home > Mailing lists > Public > www-style@w3.org > January 2008

@classattr and @styleattr

From: Nikodem <freyjkell@gmail.com>
Date: Sun, 27 Jan 2008 12:15:11 +0100
Message-ID: <479C67BF.3080408@gmail.com>
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 */

<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 */

<elmnt style="color:red" print-style="color:black">Abc</elmnt>

Received on Sunday, 27 January 2008 11:15:36 GMT

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