Hi
What I need to do is to take the following XML (or some variant of it):
<?xml version="1.0" encoding="UTF-8"?>
<MyRawHTML>
<H1>Hello, world!</H1>
</MyRawHTML>
And apply an XSLT to it along the lines of:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
<head>
</head>
<body>
<p>
<xsl:value-of select="/MyRawHTML" />
<!-- This doesn't work either:
<![CDATA[<H1>Hello, world!</H1>]]>
-->
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
So that I get:
<html>
<head>
</head>
<body>
<p>
<H1>Hello, world!</H1>
</p>
</body>
</html>
Is this possible? I have tried to use CDATA, but I just get the text
"<H1>Hello, world!</H1>" coming through instead.
Thank you for any help anyone can provide.
Marek