xsl-list
[Top] [All Lists]

Re: [xsl] Printing CDATA from feed as HTML

2008-06-13 11:19:04
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>