@classattr and @styleattr

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