xsl-list
[Top] [All Lists]

Re: [xsl] [XSLT 1.0] How to remove CDATA sections?

2010-06-30 22:42:00
Thanks Michael!

This is as good as finding out that I could use TagSoup style parsers
on ill-formed HTML.

Was just rereading your XSLT 2 book last week. Learned a bunch even on
the 3rd pass.

On Wed, Jun 30, 2010 at 5:44 PM, Michael Kay <mike(_at_)saxonica(_dot_)com> 
wrote:

Not in XSLT.

You want a text processor that works at the text level, not the XML level.

...

Take a look at sed, awk, perl, or python.



Or at Andrew Welch's LexEv, which converts the CDATA sections into something
that XSLT can recognize:

http://andrewjwelch.com/lexev/

Michael Kay
Saxonica

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--