css-possibilities are great. But only if you can identify all elements, cascading or with class an id. Its very costly to ident every single element that could be changed by css.
If you identify the body-tag with a identifictional variable like sitename, namesroomes etc., every kind of content can bei identified.
<body class="ns_de page_impressum" >...
Further a link is not only identified by his position, also by his target.
<a href="/impressum.html" class="link_impressum" title="Das Impressum">Impressum</a>
My solution in
*main.php
<body<?php if (tpl_getConf('enable')) echo " class='$sidebar_class" ;
if($conf['title2css']) {echo ' '.str_replace (':' , ' d2c_' , $ID);}
if($conf['user2css'] && $_SERVER['REMOTE_USER']) {echo ' remoteuser' ;} ?>'>
* parser/xhtml.php (498 ff)
if ( $exists ) {
$class='wikilink1 '.str_replace (':' , ' t2c_' , $id);
} else {
$class='wikilink2 '.str_replace (':' , ' t2c_' , $id);
}
'd2c_' is my prefix.
I'm not sure what kind of date could be written in the css: title, namesroom, categorys, requesting servername, username, REMOTE_USER y/n (like in my example)
more:
http://forum.dokuwiki.org/thread/3469 (german)
http://umija.org/howto:data2css (german)