[Pmwiki-users] pmwiki rss problem

Patrick R. Michaud pmichaud
Sun Dec 28 19:58:12 CST 2003

The problem appears to be that RSS/RDF documents do not have support
for HTML entities or non-ASCII characters.  I've researched the topic
a bit, and the best solution for removing non-ASCII characters appears to
be to convert them to the form &#nnn; .  For example, the word 
"merkw?rdigerweise" would be translated into "merkwürdigerweise".

Handling named character entitites such as "—" is a bit trickier,
because those aren't defined by default in XML.  However, the RSS 1.0 
core specification recommends adding the following to the
DOCTYPE to enable XHTML entities in RSS 1.0 (RDF) documents 

    <?xml version="1.0"?>
    <!DOCTYPE rdf:RDF [
      <!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"> %HTMLlat1;
      <!ENTITY % HTMLspecial PUBLIC "-//W3C//ENTITIES Special for XHTML//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent"> %HTMLspecial;


I can make this change to the distributed rss.php module if anyone would 
like me to do that.  In the meantime, I've already made this change to
rss.php on the pmichaud.com site, so that we can verify that it works
for http://www.pmichaud.com/wiki/Main/AllRecentChanges?action=rss .

I haven't made the change on pmichaud.com to convert non-ASCII characters 
into XML character entities but should be able do that tomorrow sometime 
and issue a release.

Please let me know soon if anyone does *not* want the above DOCTYPE 
specification added to the rss.php script.


On Sun, Dec 28, 2003 at 04:56:51AM +0100, Patrick Ogay wrote:
> Hello,
> I'm new to the pmwiki list.
> Recently I implemented the RSS feature and syndication from an other CMS 
> (SPIP -
> http://www.basel-inside.ch/spip/resume.php3 "sur le Web") works perfectly).
> I installed AmphetaDesk and now I have the following problem:
> AmphetaDesk could not determine the format of
> http://www.blug.ch/pm/wiki/Blug/RecentChanges?action=rss.
> This string did work:
> http://www.pmichaud.com/wiki/PmWiki/RecentChanges?action=rss
> (I don't see a difference in structure...)
> By the way: http://www.pmichaud.com/wiki/Main/AllRecentChanges?action=rss
> doesn't work at the moment  at all (28 Dez. 2003):
> ---------------------------------
> XML Parsing Error: undefined entity
> Location: http://www.pmichaud.com/wiki/Main/AllRecentChanges?action=rss
> Line Number 93, Column 34:          <description> HomePage &mdash; 
> Homepage of
> this group
> ------------------------------------------------------------^&mdash
> kind Regards
> Patrick Ogay
> www.blug.ch/pm
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com

More information about the pmwiki-users mailing list