Re: [xsl] Printing CDATA from feed as HTML

Subject: Re: [xsl] Printing CDATA from feed as HTML
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Fri, 13 Jun 2008 20:18:24 +0200
Joe Fawcett wrote:

I think one thing that needs to be cleared up is "Is the pseudo-markup in the CDATA section guaranteed to be xhtml as opposed to html?", it appears to me that it might not be XML so parsing it might fail.



That could be resolved with using doc-available() prior to using doc(). It will return false if the text is not parsable as XML, which gives you the possibility to gracefully degrade.


Cheers,
-- Abel

Current Thread