Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSLT to Remove Elements with Specific Attributes?

From: Martin Honnen <mahotrash@-----.-->
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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent