Fossil SCM

Make RSS feed valid by using 'dc:creator' element instead of 'author'. Ticket [109ae2e904].

dchest 2011-09-11 12:22 UTC dmitry-fixes
Commit 71b862af7d6980692cbfed76f09cd6f0ba355203
1 file changed +2 -2
+2 -2
--- src/rss.c
+++ src/rss.c
@@ -94,11 +94,11 @@
9494
}
9595
9696
zPubDate = cgi_rfc822_datestamp(time(NULL));
9797
9898
@ <?xml version="1.0"?>
99
- @ <rss version="2.0">
99
+ @ <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
100100
@ <channel>
101101
@ <title>%h(zProjectName)</title>
102102
@ <link>%s(g.zBaseURL)</link>
103103
@ <description>%h(zProjectDescr)</description>
104104
@ <pubDate>%s(zPubDate)</pubDate>
@@ -130,11 +130,11 @@
130130
@ <item>
131131
@ <title>%s(zPrefix)%h(zCom)</title>
132132
@ <link>%s(g.zBaseURL)/info/%s(zId)</link>
133133
@ <description>%s(zPrefix)%h(zCom)</description>
134134
@ <pubDate>%s(zDate)</pubDate>
135
- @ <author>%h(zAuthor)</author>
135
+ @ <dc:creator>%h(zAuthor)</dc:creator>
136136
@ <guid>%s(g.zBaseURL)/info/%s(zId)</guid>
137137
@ </item>
138138
free(zDate);
139139
nLine++;
140140
}
141141
--- src/rss.c
+++ src/rss.c
@@ -94,11 +94,11 @@
94 }
95
96 zPubDate = cgi_rfc822_datestamp(time(NULL));
97
98 @ <?xml version="1.0"?>
99 @ <rss version="2.0">
100 @ <channel>
101 @ <title>%h(zProjectName)</title>
102 @ <link>%s(g.zBaseURL)</link>
103 @ <description>%h(zProjectDescr)</description>
104 @ <pubDate>%s(zPubDate)</pubDate>
@@ -130,11 +130,11 @@
130 @ <item>
131 @ <title>%s(zPrefix)%h(zCom)</title>
132 @ <link>%s(g.zBaseURL)/info/%s(zId)</link>
133 @ <description>%s(zPrefix)%h(zCom)</description>
134 @ <pubDate>%s(zDate)</pubDate>
135 @ <author>%h(zAuthor)</author>
136 @ <guid>%s(g.zBaseURL)/info/%s(zId)</guid>
137 @ </item>
138 free(zDate);
139 nLine++;
140 }
141
--- src/rss.c
+++ src/rss.c
@@ -94,11 +94,11 @@
94 }
95
96 zPubDate = cgi_rfc822_datestamp(time(NULL));
97
98 @ <?xml version="1.0"?>
99 @ <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
100 @ <channel>
101 @ <title>%h(zProjectName)</title>
102 @ <link>%s(g.zBaseURL)</link>
103 @ <description>%h(zProjectDescr)</description>
104 @ <pubDate>%s(zPubDate)</pubDate>
@@ -130,11 +130,11 @@
130 @ <item>
131 @ <title>%s(zPrefix)%h(zCom)</title>
132 @ <link>%s(g.zBaseURL)/info/%s(zId)</link>
133 @ <description>%s(zPrefix)%h(zCom)</description>
134 @ <pubDate>%s(zDate)</pubDate>
135 @ <dc:creator>%h(zAuthor)</dc:creator>
136 @ <guid>%s(g.zBaseURL)/info/%s(zId)</guid>
137 @ </item>
138 free(zDate);
139 nLine++;
140 }
141

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button