Subject: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.
Subject: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.
Subject: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.
Subject: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.
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?