I am trying to transform RSS 2 coming from Wordpress into XHTML 1.0 Strict (using a cronjob and xsltproc); however, Wordpress inserts an img
into the CDATA
at the end of the summary
element. The img
has a border
attribute, which is invalid in XHTML 1.0 Strict. Because it's CDATA, I assume that means I can't match it with my XSLT. I can say for certain that the img
is always the last thing before the CDATA
ends. I'd prefer to strip the border
attr and keep the image, but I'd rather get rid of the element entirely than have invalid markup.
Is it possible to match inside CDATA using XSLT, perhaps using a string expression? If so, is that the right way to go here, or is there a better solution to be had?