Re: [xsl] Treat CDATA section content as node
Subject: Re: [xsl] Treat CDATA section content as node|
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 25 Feb 2010 17:35:53 +0000
On 25/02/2010 17:24, Karl Stubsjoen wrote:
By the way, I'm not against a 2.0 solution. Is there one?
yes as I said earlier, the htmlparse stylesheet is an htmlparser (of
sorts) written in pure xslt2. I mainly wrote it to teach myself some
xslt2, but some people have used it in anger on some surprisingly large
If you want to parse an entire html file you are probably better off
using something like tidy or tagsoup but for parsing fragments of html
embedded in CDATA sections htmlparse works reasonably well and avoids
relying on processor-specific extensions, although being xslt2 you're
not overloaded with processor choice anyway....
This e-mail has been scanned for all viruses by Star. The service is
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
powered by MessageLabs.