Conditional comments are a useful way to avoid risky CSS hacks. Generating them in XSLT is a bit tricky, but possible. Tested with libxsl and Xalan.
<xsl:comment><![CDATA[[if !IE]><!]]></xsl:comment>
<style type="text/css" media="screen">
<xsl:comment>
@import url("style/Moz.main.css"); /* level 1 */
@import url("style/Moz.window.css"); /* level 2 */
@import url("style/Moz.document.css"); /* level 3 */
</xsl:comment>
</style>
<xsl:comment><![CDATA[<![endif]]]></xsl:comment>
<xsl:comment>[if IE]>
<![CDATA[
<style type="text/css" media="screen">
@import url('style/IE.main.css'); /* level 1 */
@import url('style/IE.window.css'); /* level 2 */
@import url('style/IE.document.css'); /* level 3 */
</style>
]]>
<![endif]</xsl:comment>
<!--[if !IE]><!-->
<style type="text/css" media="screen">
<!--
@import url("style/Moz.main.css"); /* level 1 */
@import url("style/Moz.window.css"); /* level 2 */
@import url("style/Moz.document.css"); /* level 3 */
-->
</style>
<!--<![endif]-->
<!--[if IE]>
<style type="text/css" media="screen">
@import url('style/IE.main.css'); /* level 1 */
@import url('style/IE.window.css'); /* level 2 */
@import url('style/IE.document.css'); /* level 3 */
</style>
<![endif]-->
Naturally you need to be careful
AddType application/x-httpd-php .php
AddOutputFilter INCLUDES .php .htm .html
When mythical sea creatures come to visit the above.
