Create XSL for RSS via PHP : issues with IE

D

deja

Hi there,

We are providing feeds via RSS/REST (query to RSS) with an attached XSL
file that works quite nicely.

We are now "pushing the envelope" by allowing feed-builders to build
their own feeds that include additional refinement by the end user.

To do this we have an XSL file the display a default feed, but also
presents a form that can change arguments for a slightly different
feed.

The idea is that a feed builder can setup a "template" with default
values that will result in a feed that can be viewed via an RSS
aggrigator - or if viewed through a browser will present the user with
a form to further refine the feed (which can then be bookmarked into
their aggrigator).

What we have is a feed that take the form of

"http://host/pathToFile?feed=XXXXXXXXXX&user0_0=SomeValue"

This feed references to an XSL file such as:

<?xml-stylesheet type="text/xsl"
href="http://host/pathToFile/rss.php?feed=XXXXXXXXXX&user0_0=SomeValue"?>

This works great in Thunderbird, but the XSL is ignored in IE.

Because this is an RSS feed, we can't do the XSL server-side. I
believe the issue with IE is that the file doesn't take the form
"filename.xsl".

Can someone verify this and/or give me some insite into a way around
this?

Thanks!

CF
 
B

Berislav Lopac

What we have is a feed that take the form of

"http://host/pathToFile?feed=XXXXXXXXXX&user0_0=SomeValue"

This feed references to an XSL file such as:

<?xml-stylesheet type="text/xsl"
href="http://host/pathToFile/rss.php?feed=XXXXXXXXXX&user0_0=SomeValue"?>

This works great in Thunderbird, but the XSL is ignored in IE.

Because this is an RSS feed, we can't do the XSL server-side. I
believe the issue with IE is that the file doesn't take the form
"filename.xsl".

Can someone verify this and/or give me some insite into a way around
this?

If you use Apache as the Web server, rename the file rss.xsl.php, and
reference it (from XML) as just rss.xsl. If the Apache's Multiview option
(http://httpd.apache.org/docs/content-negotiation.html) is turned on, the
correct file will be called.

Berislav
 
D

deja

"This works great in Thunderbird, but the XSL is ignored in IE. "

Should have been "works great in Firefox"

-CF
 
D

deja

Thanks Berislav for the quick response.

If were accessing the file rss.php with no attributes I can see how the
renaming would work to "fake out" IE. However we are passing variables
across the URL - are you saying that IE would be able to handle the
reference to:

<?xml-stylesheet type="text/xsl"
href="rss.xsl?feed=XXXXXXXXXX&user0_0=SomeValue" ?>

?

Thanks!
CF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top