Ticket #1380 (closed enhancement: wontfix)

Opened 7 years ago

Last modified 5 years ago

Add Optional XSL styling to feeds output

Reported by: jrconlin Owned by:
Priority: lowest Milestone:
Component: Template Version: 1.5.1
Severity: trivial Keywords: bg|has-patch
Cc:

Description

It would be very helpful to allow folks to optionally specify an XSL style sheet for the various output feeds.

Currently, I accomplish this by adding the following code: wp-rss2.php Line: 15 <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; if (RSS_XSL_STYLE_SHEET) -- jrc echo '<?xml-stylesheet href="'.RSS_XSL_STYLE_SHEET.'" type="text/xsl" media="screen"?>'."\n"; ?>

(obviously replicated where appropriate in the other feed files as well).

In my wp-config.php file I specify the define as:

define('RSS_XSL_STYLE_SHEET',' http://blog.unitedheroes.net/isb.xsl'); Again, obviously, the usual portability wrappers could be used instead of the hardcoded path.

Attachments

xsl-patch.txt Download (608 bytes) - added by elidourado 6 years ago.
check theme dir for rss2.xsl file, use if there

Change History

  • Patch set to No
  • Keywords bg|needs-patch added
  • Owner changed from anonymous to skippy
  • Status changed from new to assigned
  • Priority changed from normal to lowest

There was a discussion on the hackers list re: XSLT. I think the final opinion was "No thanks."

  • Owner skippy deleted
  • Status changed from assigned to new

I don't think that's now the current opinion of the hackers mailing list, especially taking into account the positive emails that have been flying around the latest thread.

Unassigning as I guess skippy doesn't want this any more.

check theme dir for rss2.xsl file, use if there

  • Keywords bg|has-patch added; bg|needs-patch removed
  • Type changed from defect to enhancement

For the moment, at least, I'd rather see this done in a plugin, and any patches that WP might need should enable the plugin to add the necessary details into the XML declaration, rather than simply adding things to the XML declaration. For instance, an add_action('rss_xml_declaration'); hook.

  • Status changed from new to closed
  • Resolution set to wontfix

Closing as WONTFIX for now. No traction in two years.

Note: See TracTickets for help on using tickets.