RSS/XML Doesn

mgifford - January 30, 2006 - 01:27
Project:Creative Commons
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:pbull
Status:won't fix
Description

Just added the CC module and now the rss won't validate

http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fpoped.org%2Fnode%2Ffeed

line 16, column 1: XML parsing error: unknown:16:1: unbound prefix [help]

xmlns:creativeCommons>http://creativecommons.org/licenses/by-sa/2.0/ca/</xmlns:creativeCommons

It's got to propagate if it's going to be useful.

Mike

#1

pbull - January 30, 2006 - 06:12
Assigned to:Anonymous» pbull

What version of Drupal are you running? I'm currently working on a 4.7 release, should be ready quite soon, but the CreativeCommons cvs will run on 4.6 with a few minor adjustments.

I need my CVS password changed so I can update the code. But for now, you can patch creativecommons.module with the attached patch to get RSS items up to speed.

For Drupal 4.6.x, you'll need to make a minor change to node.module for the RSS to get a namespace to validate against:

// around line 1150 of node.module
$output .= "<rss version=\"". $channel["version"] . "\" " .
    'xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" ' .
    "xml:base=\"". $base_url ."\">\n";

AttachmentSize
creativecommons-rss.patch 418 bytes

#2

mgifford - January 30, 2006 - 13:58
Status:active» needs review

I was installing this against 4.6.. CivicSpace's svn actually.

It worked.. Attaching a patch for node.module

Mike

AttachmentSize
node.module_24.patch 777 bytes

#3

turadg - August 19, 2009 - 20:52
Status:needs review» won't fix

Version 4.x no longer supported.

 
 

Drupal is a registered trademark of Dries Buytaert.