Hi
Is there a way of outputting some xml tags during an XSLT transform? For
example when I use the 'xsl:value-of select="xhtml"' statement I'd like to
output the children of 'xhtml' after the transform. At the moment the tags
are being ignored. I don't want to put the contents inside CDATA because I
want to be able to parse the xml file as proper xml elsewhere in the
application.
<contentItem>
<title>Stuff about the content</title>
<xhtml>
<h1>Heading</h1>
<p>Para1</p>
<p>Para2</p>
<p>Para3</p>
</xhtml>
</contentItem>
<xsl:output indent="yes" method="xml"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
<xsl:template match="contentI tem">
<title><xsl:val ue-of select="title"/></title>
<xsl:value-of select="xhtml" disable-output-escaping="yes"/>
</xsl:template>
Many thanks
Andrew