[Moin-devel] [ moin-Bugs-697935 ] Problem in XML in the rss feed

SourceForge.net noreply at sourceforge.net
Tue Mar 11 12:15:10 EST 2003


Bugs item #697935, was opened at 2003-03-05 12:35
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=697935&group_id=8482

Category: None
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: James Michael DuPont (mdupont)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem in XML in the rss feed

Initial Comment:
This bug is logged against the dotgnu wiki :
https://savannah.gnu.org/pm/task.php?
func=detailtask&project_task_id=1921&group_id=298&group
_project_id=810

http://wiki.dotgnu.org/RecentChanges?action=rss_rc

This outputs <rdf:RDF
xmlns:None="http://purl.org/rss/1.0/";
it should be
xmlns="http://purl.org/rss/1.0/"; 


----------------------------------------------------------------------

>Comment By: Jürgen Hermann (jhermann)
Date: 2003-03-11 21:23

Message:
Logged In: YES 
user_id=39128

Not reproducable with a current PyXML

----------------------------------------------------------------------

Comment By: James Michael DuPont (mdupont)
Date: 2003-03-05 13:06

Message:
Logged In: YES 
user_id=147871

This code uses the rss generator :
from MoinMoin.wikixml.util import RssGenerator
handler = RssGenerator(out)
handler.startDocument()
------------------------------------------
./MoinMoin/wikixml/util.py

 default_xmlns = {
        None:       "http://purl.org/rss/1.0/",
        'rdf':      "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        'xlink':    "http://www.w3.org/1999/xlink",
        'dc':       "http://purl.org/dc/elements/1.1/",
        'wiki':     "http://purl.org/rss/1.0/modules/wiki/",
    }
This should read 
 default_xmlns = {
        '':       "http://purl.org/rss/1.0/",
        'rdf':      "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        'xlink':    "http://www.w3.org/1999/xlink",
        'dc':       "http://purl.org/dc/elements/1.1/",
        'wiki':     "http://purl.org/rss/1.0/modules/wiki/",
    }
or however you leave an empty string :

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=697935&group_id=8482




More information about the Moin-devel mailing list