Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-2125

Workaround Firefox feed stylesheet issue

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.2.2
    • None
    • None

    Description

      From Greg Huber:

       

      BIF. With the pending removal of feed reader and live bookmarks support
      from Firefox:

         https://bugzilla.mozilla.org/show_bug.cgi?id=1477667

      To make the roller feeds work again in firefox, it needs a workaround:

         https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/XSL_Transformations_in_Mozilla_FAQ

      Just add this to the templates, it creates the 512 bytes comment (variousways of doing it!)

      <!-- #foreach ($number in [1..153])$foreach.count#end -->

      eg

      *#<?xml version="1.0" encoding="utf-8"?>
      #if($config.feedStyle)<?xml-stylesheet type="text/xsl"
      href="$url.absoluteSite/roller-ui/styles/rss.xsl" media="screen"?><!--
      #foreach ($number in [1..153])$foreach.count#end -->#end
      <rss version="2.0"
      

      In the end I just created a macro with a content of

      <!-- 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
      -->
      

      as I thought it was much longer, rather than the foreach.

       

      Attachments

        Activity

          People

            djohnson David Johnson
            djohnson David Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: