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

Re: Merging multiple RSS feeds into one RSS feed

Subject: Re: Merging multiple RSS feeds into one RSS feed
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Tue, 18 Apr 2006 15:06:34 -0500
multiple feeds into one feed
On 4/18/06, Nic <nferrier@xxxxxxxxxxxxxxxxxxxx> wrote:
> Robert Fidler <robert.fidler@xxxxxxxxxx> writes:
>
> > Does any one know how I can merge multiple RSS feeds into one feed? I
> > have this code, but when I view the feed.xml in IE, it does not have any
> > of the XML formating in it, just plain text output all strong out. And
> > RSSOwl does not even read it.
> >

The transformation seems to work fine for me.  What type of formatting
are you expecting?  Remember, you are generating an XML document.
The fact that you're seeing the text but only as unformatted probably
means it's working.  I believe IE always displays raw xml that is a
result of a transformation in that manner (Doesn't show the tags but
just text).  As for RSSOwl not reading it, who knows.  Might not be
handling the namespaces correctly.

My advice?  Same as always, don't use the browser to transform until
you know your stylesheet is working.  Using a command-line tool is the
best, Oxygen or another if you would rather.  If you absolutely must
use the browser, find a "view generated source" type of plugin.

> Something like:
>
>   <xsl:for-each select="feeds/link">
>     <xsl:variable name="source" select="document(@href)"/>
>     <xsl:copy-of select="$source//item"/>
>   </xsl:for-each>
>
> Works for me.
>

How is that any different?  It'll give you the exact same thing,
except you're putting the document into a variable and then using //.
There's a good chance on some processors your suggestion is even
slower.  I'd probably go with what the OP had with in the first place.

Jon Gorman

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.