Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.21.0

Bug #170 RDF examples produce incorrect code
Submitted: 2003-10-30 21:58 UTC
From: shaun at aegisdesign dot co dot uk Assigned: schst
Status: Closed Package: XML_Serializer
PHP Version: 4.3.2 OS: n/a
Roadmaps: (Not assigned)    
Subscription  


 [2003-10-30 21:58 UTC] shaun at aegisdesign dot co dot uk
Description: ------------ I'm trying to output valid RSS/RDF with your PEAR class but coming up across a couple of problems. Firstly, I think the serializeRDF.php example is incorrect. The <channel> should be closed before the <item>s. Secondly, according to the spec at http://web.resource.org/rss/1.0/ spec there needs to be an rdf:about="" attribute for each <item> and <channel>. eg. <item rdf:about="http://xml.com/pub/2000/08/09/xslt/xslt.html"> <title>Processing Inclusions with XSLT</title> <link>http://xml.com/pub/2000/08/09/xslt/xslt.html</link> <description> Processing document inclusions with general XML tools can be problematic. This article proposes a way of preserving inclusion information through SAX-based processing. </description> </item> Is there a way of adding the attribute? or is it a bug in XML_Serializer? As it is, the XML created by this doesn't work in news aggregators eg. SlashDock.

Comments

 [2003-10-31 19:24 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2003-10-31 19:33 UTC] shaun at aegisdesign dot co dot uk
Without attributes it rules out using XML_Serializer for RSS news syndication so I hope they get added soon as I'd much prefer to use a standard PEAR class than rolling my own for each project. I imagine you'd get a lot more users of this if it did.
 [2004-05-24 19:45 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!