V
Vincent Lefevre
I'd like to generate something like that:
<style type="text/css">/*<![CDATA[*/
body { }
*/]]></style>
I thought the following would work, but it doesn't (I tried with
xsltproc).
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
<xslutput method="xml"
encoding="iso-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>.</title>
<style type="text/css">
<xsl:text disable-output-escaping="yes">/*<![CDATA[*/
body { }
/*]]>*/</xsl:text>
</style>
</head>
<body><p>.</p></body>
</html>
</xsl:template>
</xsl:stylesheet>
Any idea?
<style type="text/css">/*<![CDATA[*/
body { }
*/]]></style>
I thought the following would work, but it doesn't (I tried with
xsltproc).
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
<xslutput method="xml"
encoding="iso-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>.</title>
<style type="text/css">
<xsl:text disable-output-escaping="yes">/*<![CDATA[*/
body { }
/*]]>*/</xsl:text>
</style>
</head>
<body><p>.</p></body>
</html>
</xsl:template>
</xsl:stylesheet>
Any idea?