Home » XML » XML_Serializer » Bug #170
RDF examples produce incorrect code
Details
| 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) |
Comments
[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.
[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.