Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - RE: Problem with xsl in sharepoint Problem with xsl in sharepointTo: NULL Date: 1/3/2007 4:09:00 AM
Hi,
I have an RSS feed that has had to have htmlencoding applied at the feed
generating end as ampersands and other characters cause problems.
I am reading this into a sharepoint xml webpart but the ampersands were
being re-encoded again, so I was now getting (ampersand)amp;amp; instead of
just (ampersand)amp; (change (ampersand) to & )
Someone has suggested "disable-output-encoding" to fix this.
It has fixed part of the problem, but I have "description" inside the title
attribute of a href tag. I cannot seem to make that work.
Here is my xsl.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' />
<xsl:template match="/">
<ul>
<xsl:for-each select="/rss/channel/item">
<li>
<a href="{link}" target="_blank"
title="{description}">
<xsl:value-of select="title"
disable-output-escaping='yes' />
</a>
<br/>
<xsl:value-of select="pubDate"/>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>
I have tried to put the disable-output-escaping into the xsl:output
method='html' tag as well (after I researched further what it does) but that
doesn't want to work.
How can I get the xsl to work altogethor? This XSL is being applied to an
RSS feed.
Thanks for your help.
Regards,
Dave Colliver.
http://www.LeedsfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Portal franchises available
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
