-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 01 May 2002 11:07, Yuri de Wit wrote:
> Is it possible in XSLT to parse a CDATA node into a document node (assuming
> that there is a valid document in the CDATA node)?
No.
The best you can do is
<xsl:apply-templates select="INPUT">
<xsl:template match="INPUT">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:copy>
</xsl:template>
But this doesn't do validation of the output, and you will end up with an
illegal '<?xml version="1.0" encoding="UTF-8"?>' at the top of the <INPUT>.
You really really need to reconsider how and why it is necessary to include
the other XML as CDATA. You should really try to find another way to do it;
there are so many issues that will come up down the road. But if you can't
change it, then good luck!
- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE80FWcNSZCJx7tYycRAplLAJ9zohRewt+zv5e9madZ7NHm5t6MBwCeLC2u
R7qrBAsFWVVvI0aHqQUK9wc=
=cIPc
-----END PGP SIGNATURE-----