RobC
RobC

Reputation: 1415

How do I format XML ampersands for XSL transform

I am attempting to transform the XML I'm retrieving from an RSS feed. This links within this feed contain ampersands which, as I mentioned here, are causing the transform to bomb. (Replacing all of the "&" with "&" in the RSS's XML allows the transform to complete.)

Can anyone recommend a good approach for reformatting the RSS XML, or is there no good way to do this?

Upvotes: 0

Views: 111

Answers (1)

Martin Honnen
Martin Honnen

Reputation: 167696

In XML you need to use & to escape an ampersand. XSLT is XML so the same rule applies.

Upvotes: 1

Related Questions