Well whether it is XSLT/XPath 1.0 or 2.0, the CDATA section results in a text node with plain text and there is no function to parse such text as XML, unless your XSLT processor provides an extension function to do that (or someone has written a parser in pure XSLT where David Carlisle has done that in XSLT 2.0)).
So which XSLT processor do you use?
Note also that "<root><book title="1234"</root>" is not well-formed (as the book tag is not closed) so even with an extension function parsing as XML is not possible.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
Last edited by Martin Honnen; November 8th, 2010 at 10:20 AM..
Reason: adding hint about syntax problem in code sample
|