Create XSL for RSS via PHP : issues with IE

Discussion in 'XML' started by deja@chronofish.com, Feb 8, 2005.

  1. Guest

    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
     
    , Feb 8, 2005
    #1
    1. Advertising

  2. 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
     
    Berislav Lopac, Feb 8, 2005
    #2
    1. Advertising

  3. Guest

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

    Should have been "works great in Firefox"

    -CF
     
    , Feb 8, 2005
    #3
  4. Guest

    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
     
    , Feb 8, 2005
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    795
    SpaceGirl
    Feb 25, 2005
  2. Motta
    Replies:
    1
    Views:
    558
    Andy Dingley
    Jun 9, 2004
  3. Replies:
    1
    Views:
    3,637
    A. Bolmarcich
    May 27, 2005
  4. Rajive Narain
    Replies:
    0
    Views:
    1,989
    Rajive Narain
    Sep 18, 2009
  5. Jonathan Groll
    Replies:
    1
    Views:
    295
    Kouhei Sutou
    Jun 27, 2009
Loading...

Share This Page