Ticket #1380 (closed enhancement: wontfix)

Opened 4 years ago

Last modified 2 years ago

Add Optional XSL styling to feeds output

Reported by: jrconlin Assigned to:
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 (0.6 kB) - added by elidourado on 04/19/06 03:19:51.
check theme dir for rss2.xsl file, use if there

Change History

05/17/05 20:03:00 changed by jrconlin

  • Patch set to No.

06/30/05 20:33:50 changed by skippy

  • keywords set to bg|needs-patch.
  • 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."

04/08/06 09:41:47 changed by davidhouse

  • owner 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.

04/19/06 03:19:51 changed by elidourado

  • attachment xsl-patch.txt added.

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

04/21/06 15:12:38 changed by elidourado

  • keywords changed from bg|needs-patch to bg|has-patch.

07/04/06 16:46:47 changed by ketsugi

  • type changed from defect to enhancement.

07/04/06 23:24:02 changed by error

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.

01/04/07 02:54:44 changed by foolswisdom

  • status changed from new to closed.
  • resolution set to wontfix.

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