Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Create XSL for RSS via PHP : issues with IE

Reply
Thread Tools

Create XSL for RSS via PHP : issues with IE

 
 
deja@chronofish.com
Guest
Posts: n/a
 
      02-08-2005
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

 
Reply With Quote
 
 
 
 
Berislav Lopac
Guest
Posts: n/a
 
      02-08-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> 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


 
Reply With Quote
 
 
 
 
deja@chronofish.com
Guest
Posts: n/a
 
      02-08-2005
"This works great in Thunderbird, but the XSL is ignored in IE. "

Should have been "works great in Firefox"

-CF

 
Reply With Quote
 
deja@chronofish.com
Guest
Posts: n/a
 
      02-08-2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Training Institute In Delhi, Live Projects on PHP. Short TermPHP Courses, PHP Scripts, PHP Training with Live Projects. Rajive Narain Java 0 09-18-2009 10:47 AM
Two ways to generate RSS - rss/maker and rss/2.0 - which is better? Jonathan Groll Ruby 1 06-27-2009 03:53 AM
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
RSS Feed - need an Idiot's Guide to RSS News on my website teach_me6@hotmail.com HTML 5 02-25-2005 11:01 AM
Searches in multiple RSS feeds -> new rss feed Motta XML 1 06-09-2004 10:55 PM



Advertisments