[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] RSS 2.0 to RSS 1.0 XSLT problem in Luminis 3.3


Subject: [xsl] RSS 2.0 to RSS 1.0 XSLT problem in Luminis 3.3
From: "Seth Casana" <scasana@xxxxxxx>
Date: Wed, 12 Jul 2006 00:24:08 -0400

Hello,

First post to the forum, looking for some troubleshooting advice.  I'm working
with Luminis 3.3, which is a proprietary version of Uportal made by Sungard.
It has the capability to process RSS 1.0 feeds and display them as portal
channels, but not RSS 2.0 feeds.  However, it can take an existing feed and
apply an XSL transformation to it, then displaying the result as a channel.

I've been trying to create a simple RSS 2.0 to RSS 1.0 converter in XSL.  I've
attached the code below.  This is my first XSL file, so there may be errors.
If there are, I don't know where they are.  When I view an RSS 2.0 feed
transformed by this file, I get the following error code:

Message:	encountered problem while trying to complete rendering
Error type: Channel timed out (code 4)

I don't know if that has something to do with the XSL file or what, but I'd
appreciate any advice in figuring it out.  Here's the XSL file:

<?xml version="1.0" encoding="utf-8"?>

<!-- convert RSS 2.0 into RSS 1.0, basic bits only -->

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="rss">
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://purl.org/rss/1.0/">

  <xsl:template match="channel">
    <channel>
	<xsl:attribute name="rdf:about"><xsl:value-of
select="link"/></xsl:attribute>
	<title><xsl:value-of select="title"/></title>
	<description><xsl:value-of select="description"/></description>
	<image><xsl:attribute name="rdf:resource"><xsl:value-of
select="image"/></xsl:attribute></image>
    <items><rdf:Seq>
	  <xsl:for-each select="item">
	    <rdf:li>
		  <xsl:attribute name="rdf:resource"><xsl:value-of
select="link"/></xsl:attribute>
		</rdf:li>
	  </xsl:for-each>
	</rdf:Seq></items>
    <textinput><xsl:value-of select="textinput"/></textinput>
    </channel>
  </xsl:template>

  <xsl:transform match="channel/image">
    <image>
      <xsl:attribute name="rdf:resource"><xsl:value-of
select="url"/></xsl:attribute>
	  <title><xsl:value-of select="image/title"/></title>
	  <url><xsl:value-of select="image/url"/></url>
	  <link><xsl:value-of select="image/link"/></link>
    </image>
  </xsl:transform>

  <xsl:for-each select="channel/item">
    <item>
	  <xsl:attribute name="rdf:about"><xsl:value-of
select="link"/></xsl:attribute>
	  <title><xsl:value-of select="title"/></title>
	  <link><xsl:value-of select="link"/></link>
	  <description><xsl:value-of select="description"/></description>
	</item>
  </xsl:for-each>

  <xsl:transform match="channel/textinput">
    <textinput>
	  <xsl:attribute name="rdf:about"><xsl:value-of
select="url"/></xsl:attribute>
	  <title><xsl:value-of select="title"/></title>
	  <description><xsl:value-of select="description"/></description>
	  <link><xsl:value-of select="link"/></link>
    </textinput>
  </xsl:transform>

</rdf:RDF>
</xsl:template>

</xsl:stylesheet>

Thanks in advance for any help!

Cheers,
Seth Casana


Current Thread
Keywords
xsl