Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSLT to Remove Elements with Specific Attributes? >Thread Next - Re: XSLT to Remove Elements with Specific Attributes? Re: XSLT to Remove Elements with Specific Attributes?To: NULL Date: 2/9/2009 1:41:00 PM Aaron Davies wrote: > hmm. looks reasonable, but doesn't seem to work on the actual document > i'm trying to change. > > i'm trying to hack up an rss feed, and the paragraphs i want to remove > are in the description section. actually, i'm not sure this is doable > with XSLT at all--on closer inspection, the description is a blob of > presumably opaque text, and what ends up as tags in the browser is > ampersand encoded in the actual feed. RSS usually does not contain well-formed XHTML markup but rather escaped HTML tag soup. So processing that escaped HTML tag soup with XML tools like XSLT is difficult. You could try to parse the escaped markup with an extension function like http://www.saxonica.com/documentation/extensions/functions/parse.html but even that will only work if the escaped markup is well-formed XML and not HTML tag soup. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
