annotate examples/tutorial/geddit/templates/index.xml @ 1043:a21009a2bc3a trunk

Return correct value and properly namespaced attribute name when matching namespaced attributes with XPath expressions (fixes #572; thanks to Olemis Lang <olemis+trac@gmail.com> for bug report and suggestion for fix).
author hodgestar
date Thu, 20 Mar 2014 12:58:48 +0000
parents 9822dfff0fd5
children
rev   line source
622
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
2 <feed xmlns="http://www.w3.org/2005/Atom"
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
3 xmlns:py="http://genshi.edgewall.org/">
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
4
628
9822dfff0fd5 GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents: 623
diff changeset
5 <title>Geddit News</title>
622
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
6 <id href="${url('/')}"/>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
7 <link rel="alternate" href="${url('/')}" type="text/html"/>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
8 <link rel="self" href="${url('/feed/')}" type="application/atom+xml"/>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
9 <updated>${links[0].time.isoformat()}</updated>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
10
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
11 <entry py:for="link in reversed(links)">
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
12 <title>${link.url}</title>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
13 <link rel="alternate" href="${link.url}" type="text/html"/>
623
58be58c03509 GenshiTutorial: Minor updates to Atom feed templates.
cmlenz
parents: 622
diff changeset
14 <link rel="via" href="${url('/info/%s/' % link.id)}" type="text/html"/>
622
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
15 <id>${url('/info/%s/' % link.id)}</id>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
16 <author>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
17 <name>${link.username}</name>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
18 </author>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
19 <updated>${link.time.isoformat()}</updated>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
20 <summary>${link.title}</summary>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
21 </entry>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
22
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents:
diff changeset
23 </feed>
Copyright (C) 2012-2017 Edgewall Software