Re: [xslt] Problem in the improving of a rss feed



This the xsl file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/rss">
<html>
<head>
    <link href="" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="logo">
    <h1 title="Torna alla home page del Comune"><xsl:element name="a">
            <xsl:attribute name="href">
                <xsl:value-of select="channel/link" />
            </xsl:attribute>
            <xsl:value-of select="channel/title" />
        </xsl:element></h1>   
    </div>
    <div class="corpo">
        <div class="titolo">
            <h2><xsl:value-of select="channel/description" /></h2>
        </div>
        <dl>
            <xsl:for-each select="channel/item">
                <dd>                                       
                    <xsl:element name="a">
                        <xsl:attribute name="href">
                            <xsl:value-of select="link"/>
                        </xsl:attribute>
                        <xsl:value-of select="title"/>
                    </xsl:element>
                </dd>
                <dt>                        
                 <xsl:value-of select="description" disable-output-escaping="yes"/>       
                </dt>
            </xsl:for-each>
        </dl>
    </div>
    <div id="piedipagina">
© <xsl:value-of select="channel/copyright" />
    </div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

while the rss file looks like this:

<item>
<title>SUBSONICA GRATIS x 5</title>
<link>http://www.comune.torino.it/infogio/omaggi/</link>
<description>I Subsonica concludono il loro &quot;Terrestre tour&quot; al Mazda Palace di Torino sabato 15 ottobre 2005. &lt;strong&gt;Venerdì 14 ottobre alle ore 15&lt;/strong&gt; saranno in palio &lt;strong&gt;5 biglietti omaggio&lt;/strong&gt; per il concerto del giorno seguente. Per vincere un biglietto occorre rispondere esattamente (e rapidamente) ad un quiz.</description>
</item>

Thank you very much for your attention and help.

p.s. I tried to post to mulberrytech list but I had the same problem.

Rob


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]