blob: 00b62427e5ef8d2b411cda571f1573dd5bfb7ad1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
xml.instruct!
xml.tag!("rdf:RDF", "xmlns:rdf" => "http://www.w3.org/1999/02/22-rdf-syntax-ns#", "xmlns:dc" => "http://purl.org/dc/elements/1.1/", "xmlns" => "http://purl.org/rss/1.0/") do
xml.tag!( "rdf:Description", "rdf:about" => "http://www.w3.org/TR/rdf-syntax-grammar", "dc:title"=>"RDF/XML Syntax Specification (Revised)")
xml.channel do
xml.title("Chaos Computer Club: Updates")
xml.link("http://www.ccc.de")
xml.description("Kabelsalat ist gesund.")
xml.tag!("dc:date", @items.first.published_at.xmlschema)
end
xml.image( "rdf:about" => "http://www.ccc.de/images/chaosknoten.gif") do
xml.title("Chaos Computer Club (Chaosknoten)")
xml.link("http://www.ccc.de")
xml.url("http://www.ccc.de/images/chaosknoten.gif")
end
@items.each do |item|
xml.item("rdf:about" => content_url(:page_path => item.node.unique_path)) do
xml.title(item.title)
xml.link(content_url(:page_path => item.node.unique_path))
xml.description(item.abstract)
xml.tag!("dc:creator", item.user.login)
xml.tag!("dc:date", item.published_at.xmlschema)
end
end
end
|