[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RSS 2.0 to RSS 1.0 XSLT problem in Luminis 3.3

Subject: 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
rss 2.0 xsl
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.