XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Robert FidlerSubject: Merging RSS feeds into one RSS feed
Author: Robert Fidler
Date: 12 Apr 2006 03:07 PM
Hello,

Does any one know how to merge multiple RSS feeds into one feed?

I found this script over at XML.com that merges multiple rss feeds, but into an HTML file. Is there a way to merge it into a RSS file?

http://www.xml.com/pub/a/2003/01/02/tr.html

Postnext
Ivan PedruzziSubject: Merging RSS feeds into one RSS feed
Author: Ivan Pedruzzi
Date: 12 Apr 2006 03:44 PM
Hi Robert,

How you would like to merge your feeds?

- import multiple channels in one feed
- merge multiple channels into one



Ivan Pedruzzi
Stylus Studio Team

Postnext
Robert FidlerSubject: Merging RSS feeds into one RSS feed
Author: Robert Fidler
Date: 12 Apr 2006 04:00 PM
Well I need to get multiple channels into one channel.

Postnext
Ivan PedruzziSubject: Merging RSS feeds into one RSS feed
Author: Ivan Pedruzzi
Date: 12 Apr 2006 04:43 PM
Robert

Something simple like the attached xslt works for you?


Ivan Pedruzzi
Stylus Studio Team


Documentmerge-rss.xsl


Unknownfeeds.xml

Postnext
Robert FidlerSubject: Merging RSS feeds into one RSS feed
Author: Robert Fidler
Date: 13 Apr 2006 09:09 AM
Originally Posted: 13 Apr 2006 09:00 AM
Do I put <?xml-stylesheet type="text/xsl" href="merge-rss.xsl"?> in the feeds.xml? How does it know to link the two together with out that? My server is a SUN server so I dont think the stylus studio stuff would work on it.

Postnext
Tony LavinioSubject: Merging RSS feeds into one RSS feed
Author: Tony Lavinio
Date: 13 Apr 2006 10:13 AM
> Do I put <?xml-stylesheet type="text/xsl" href="merge-rss.xsl"?>
> in the feeds.xml?

Yes; it's handled by most browsers.

> How does it know to link the two together with out that?

When a browser sees the PI above, it invokes the local XSLT engine
on the referenced .xsl file. In that .xsl file would be the
references to the other .xml files to be merged. Or, depending on
how you designed things, that .xml file could even be a list of
other .xml files to be merged.

> My server is a SUN server so I dont think the stylus studio stuff
> would work on it.

Stylus Studio is used for development time, and would work very well
for you to build these stylesheets. Although we also provide runtime
components that are cross-platform, in this case you don't need them.

Postnext
Robert FidlerSubject: Merging RSS feeds into one RSS feed
Author: Robert Fidler
Date: 13 Apr 2006 11:36 AM
Well in one of my tests on my computer it worked.
But when I put it up on the server I got this error. Any one of any ideas?



The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Access is denied.

Postnext
Robert FidlerSubject: Merging RSS feeds into one RSS feed
Author: Robert Fidler
Date: 13 Apr 2006 02:18 PM
Ok I am getting there.

I can use that code to merge two(+) rss feeds that are on the server together, but I can not use it to do remote feeds. Which is fine I don't need it to do that. But the issue I am having now is that when I look at the XML file in IE, its not formatted. All I see is the text all strong out. So IE does not see it as RSS, nether does RSSOwl.

Postnext
Tony LavinioSubject: Merging RSS feeds into one RSS feed
Author: Tony Lavinio
Date: 13 Apr 2006 03:21 PM
So the final consumer is not a browser?
Hmm.
In that case, it does look like you will need to provide
some sort of XSLT transformation on the server.

That's outside of the scope of these forums.

You could ask on xsl-list - to see how to do that, go to
http://www.stylusstudio.com/xsllist

There are several XSLT engines you can use on the server.
I'd recommend Saxon 8.7.1 if possible (www.saxonica.com)
if Java is an option. Running on the server will make sure
what comes out is RSS and not HTML.

Did you try Googling for xslt servlet or something like that?

Posttop
Robert FidlerSubject: Merging RSS feeds into one RSS feed
Author: Robert Fidler
Date: 18 Apr 2006 01:29 PM
Ok thank you for all your help. I am getting close now.
I will read over the mailing list.

Thank you
Rob

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.