I am not sure why this hasn't been mentioned in the list of answer. Sorry if it took me 2 years to see this question...
The easiest, most powerful way to do what you want to do what you want is using an Apache filter.
Just have:
ExtFilterDefine css_changer mode=output intype=text/html cmd="/some/php/script.php"
SetOutputFilter css_changer
A possible script:
#!/usr/bin/php
<?
#phpinfo(); // Uncomment to see ALL env variables
$host = $_ENV["HTTP_HOST"]; // www.site.com
$script_name = $_ENV["SCRIPT_NAME"]; // /theme/green/style.css
$pi = pathinfo($script_name);
$type = $pi['extension'];
#print "$host $script $type";
$stdin = fopen('php://stdin', 'r');
while($line = fgets($stdin)){
$line = preg_replace('/a/','A',$line);
fwrite($stdout, $line);
}
?>
This will change all "a"s into "A"s .
This question ranks really up in Google and there isn't much out there in terms of forums