I am using an XSL document to pretty print my RSS feed. However, special characters don't parse - they appear within the feed as   and &

What line(s) do I need to specify in my RSS and XSL XML documents in order to get these to work? It's my understanding that & " < > should work by default but I need to do extra to work to map   to a space.

In your dtd try this

<!ENTITY &nbsp; " ">

I was reading up about that but I haven't tried it yet. What I'm most in need of is getting &amp; to work, but from what I understand, it should by default? I'm using UTF-8 if that matters.

Entities such as &amp; and &quote; will need to be specified into the dtd but you could always use the hex value so for a single quote you could use &39; and whitespace you could use &#160; this will always be transformed for you with no problems and saves you declaring the entities in the dtd.

sorry a space is

&#160;

and a single quote qould be

&#39;

Thank you for your help. I did some research and the following worked:

I replaced

<xsl:value-of select="description" />

with

<xsl:value-of select="description" disable-output-escaping="yes" />

great tip, thx for the help

Thank you for your help. I did some research and the following worked:

I replaced

<xsl:value-of select="description" />

with

<xsl:value-of select="description" disable-output-escaping="yes" />
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.