Re: Repeated RSS elements
by David Holden other posts by this author
Nov 24 2005 7:01AM messages near this date
view in the new Beta List Site
Repeated RSS elements
|
XSLT question (passing parameters)
& XSLT On Thursday 24 Nov 2005 12:05, Juan Julian Merelo Guervos wrote:
> Hi,
> I'm trying to create a RSS 1.0 file for Google Bulk uploads using
> XML::RSS. These RSS 1.0 files have an extension that allows multiple
> <g:label> elements, and I'm trying to add them using something like:
> $rss->add_item( title => $titulo,
> link => "http://$blog.blogalia.com/historias/$id",
> description => $contenido,
> g => { expiration_date => join( '-', @caduca ),
> publish_date => $estaFecha,
> label => $estasCategorias[0] } );
> However, if I change this last line to, for instance, label =>
> ['a','b'], it plainly writes out the ARRAY ref.
>
> One way to fix this is quite obviously to create the xml file using
> another module; but before I'd like to know if there's a way of using it
> via the XML::RSS module. BTW, I'm using XML::RSS 1.05
>
> JJ
>
>
> _______________________________________________
> Perl-XML mailing list
> Perl-XML@[...].com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
I recall facing a similar problem when I was constructing our RSS feeds and
wanted to output multiply dc:creator elements. It seems that the RSS 1.0
standarad does not allow multiple elements like this, at the time I hacked
the module to allow it for RSS 1.0, but I now use xslt to create them.
Dave.
--
Dr. David Holden.
Please avoid sending me Word or PowerPoint attachments, thanks.
See: <http://www.gnu.org/philosophy/no-word-attachments.html>
Public GPG key available on request.
-------------------------------------------------------------
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
David Craig
Juan Julian Merelo Guervos
David Holden
|