Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Problem with xsl in sharepoint

From: DavidColliver@-----------.---------.---
To: 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



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