Skip to content

Commit b2c3302

Browse files
committed
Initial revision
git-svn-id: http://feedvalidator.googlecode.com/svn/trunk@4 34a10a33-d82d-0410-ba40-81c901463ecc
0 parents  commit b2c3302

File tree

1,156 files changed

+48526
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,156 files changed

+48526
-0
lines changed

.check.cgi.swo

24 KB
Binary file not shown.

.check.cgi.swp

16 KB
Binary file not shown.

.cvsignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.pyc
2+
feedfinder.*

.htaccess

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Options +ExecCGI +MultiViews
2+
AddHandler cgi-script cgi
3+
4+
DirectoryIndex index.html check.cgi
5+

RSSValidator.wsdl

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<definitions
3+
targetNamespace="http://feedvalidator.org/"
4+
xmlns:validator="http://feedvalidator.org/"
5+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
6+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
7+
xmlns="http://schemas.xmlsoap.org/wsdl/">
8+
9+
<types>
10+
<xsd:schema elementFormDefault="qualified"
11+
targetNamespace="http://feedvalidator.org/">
12+
13+
<xsd:complexType name="Request">
14+
<xsd:sequence>
15+
<xsd:any namespace="##other"/>
16+
</xsd:sequence>
17+
</xsd:complexType>
18+
19+
<xsd:complexType name="Message">
20+
<xsd:sequence>
21+
<xsd:element name="level" type="xsd:string"/>
22+
<xsd:element name="type" type="xsd:string"/>
23+
<xsd:element name="line" type="xsd:string"/>
24+
<xsd:element name="column" type="xsd:string"/>
25+
<xsd:element name="msgcount" type="xsd:string"/>
26+
<xsd:element name="text" type="xsd:string"/>
27+
<xsd:any minOccurs="0" maxOccurs="unbounded"/>
28+
</xsd:sequence>
29+
</xsd:complexType>
30+
31+
<xsd:complexType name="Response">
32+
<xsd:sequence>
33+
<xsd:element name="message" type="validator:Message"
34+
minOccurs="0" maxOccurs="unbounded"/>
35+
</xsd:sequence>
36+
</xsd:complexType>
37+
38+
<xsd:element name="request" type="validator:Request"/>
39+
<xsd:element name="response" type="validator:Response"/>
40+
</xsd:schema>
41+
</types>
42+
43+
<message name="validateIn">
44+
<part name="request" element="validator:request" />
45+
</message>
46+
<message name="validateOut">
47+
<part name="response" element="validator:response" />
48+
</message>
49+
50+
<portType name="RSSValidatorSoap">
51+
<operation name="validate">
52+
<input message="validator:validateIn" />
53+
<output message="validator:validateOut" />
54+
</operation>
55+
</portType>
56+
57+
<binding name="soap" type="validator:RSSValidatorSoap">
58+
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
59+
style="document" />
60+
<operation name="validate">
61+
<soap:operation soapAction="urn:validate" style="document" />
62+
<input>
63+
<soap:body use="literal" />
64+
</input>
65+
<output>
66+
<soap:body use="literal" />
67+
</output>
68+
</operation>
69+
</binding>
70+
71+
<service name="RSSValidator">
72+
<port name="RSSValidatorSoap" binding="validator:soap">
73+
<soap:address location="http://feedvalidator.org/" />
74+
</port>
75+
</service>
76+
</definitions>

about.html

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4+
<head>
5+
<title>About the Feed Validator</title>
6+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7+
<style type="text/css" media="screen">@import "css/common.css";
8+
@import "css/documentation.css";</style>
9+
<script type="text/javascript"><!-- --></script>
10+
</head>
11+
<body>
12+
13+
<div id="logo">
14+
<h1><a href="/"><span id="feed"><span id="f">F</span><span id="e1">E</span><span id="e2">E</span></span><span id="d">D</span> Validator</a></h1>
15+
<p>About</p>
16+
<a class="skip" href="#startnavigation">Jump to navigation</a>
17+
</div> <!--logo-->
18+
19+
<div id="main">
20+
21+
<p>On this page:</p>
22+
23+
<ul>
24+
<li><a href="#what">What is this?</a></li>
25+
<li><a href="#why">Why a validator?</a></li>
26+
<li><a href="#how">What does it validate?</a></li>
27+
<li><a href="#who">Who wrote it?</a></li>
28+
<li><a href="#where">Can I run it locally?</a></li>
29+
</ul>
30+
31+
<h2 id="what">What is this?</h2>
32+
33+
<p>This is a validator for syndicated feeds. It works with RSS 0.90, 0.91, 0.92, 0.93, 0.94, 1.0, and 2.0. It also validates Atom feeds.</p>
34+
35+
<p>To use it, simply enter the address of your feed and click Validate. If the validator finds any problems in your feed, it will give you messages for each type of problem and highlight where the problem first occurs in your feed. If you're unsure what a message means, click the "help" link next to the message for a fuller explanation.</p>
36+
37+
<h2 id="why">Why a validator?</h2>
38+
39+
<p>Despite its relatively simple nature, RSS is poorly implemented by many tools. This validator is an attempt to codify the specification (literally, to translate it into code) to make it easier to know when you're producing RSS correctly, and to help you fix it when you're not.</p>
40+
41+
<p>The validator also supports the new Atom format for syndicated feeds. Early adopters who wish to support Atom should use the validator to make sure they generate it properly from day 1.</p>
42+
43+
<p>There are validators for other web technologies, such as <a href="http://validator.w3.org/">HTML</a>, <a href="http://jigsaw.w3.org/css-validator/validator-uri.html">CSS</a>, and <a href="http://bobby.watchfire.com/">accessibility guidelines</a>, and these have all proven quite popular. As personal news syndication is becoming more widespread, we saw a need for a comprehensive but easy-to-use validator for syndicated feeds.</p>
44+
45+
<h2 id="how">What does it validate?</h2>
46+
47+
<p>It validates RSS feeds against the rules defined in the <a href="/docs/rss2.html">RSS 2.0 specification</a>. It also validates elements of commonly used namespaces:</p>
48+
49+
<ul>
50+
<li>blogChannel</li>
51+
<li>Dublin Core</li>
52+
<li>mod_admin</li>
53+
<li>mod_syndication</li>
54+
<li>mod_content (<code>content:encoded</code> only)</li>
55+
</ul>
56+
57+
<p>For Atom feeds, it validates against <a href="http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html">draft-nottingham-atom-format-02</a>, which describes version 0.3 of the Atom feed format. As the specification changes, the validator will be updated to support newer versions.</p>
58+
59+
<p>The <a href="/docs/">documentation index</a> lists all the error messages that the validator produces. You can also download the entire test suite that was used to create the validator (see below).</p>
60+
61+
<h2 id="who">Who wrote it?</h2>
62+
63+
<p>The validator was conceived and designed by <a href="http://diveintomark.org/">Mark Pilgrim</a>, who also wrote most of the test cases and designed the web front end. Much of the actual back end coding was done by <a href="http://intertwingly.net/blog/">Sam Ruby</a>.</p>
64+
65+
<a name="opensource" id="opensource"></a>
66+
<h2 id="where">Can I run it locally?</h2>
67+
68+
<p>Yes. The validator is open source, written in Python, and distributed under the same license as Python itself. To run it, you will need <a href="http://python.org/">Python 2.2</a> or later, and an XML parser. Most Python distributions include a minimal XML parser which will work just fine. Mac OS X 10.2 users should install <a href="http://sourceforge.net/projects/pyxml/">PyXML</a>.</p>
69+
70+
<blockquote><p><a href="http://feedvalidator.org/download/feedvalidator-latest.zip">Download the Feed Validator</a></p></blockquote>
71+
72+
<p>To run the validator:</p>
73+
74+
<blockquote>
75+
<p><samp>[feedvalidator you@localhost]$</samp> <kbd>cd src</kbd><br />
76+
<samp>[src you@localhost]$</samp> <kbd>python demo.py http://url/to/validate</kbd></p>
77+
</blockquote>
78+
79+
<p>The source code distribution also includes a complete test suite of almost 1000 feeds that were used to test the validator during development. To run the test suite:</p>
80+
81+
<blockquote>
82+
<p><samp>[feedvalidator you@localhost]$</samp> <kbd>cd src</kbd><br />
83+
<samp>[src you@localhost]$</samp> <kbd>python validtest.py -v</kbd></p>
84+
</blockquote>
85+
86+
</div><!--main-->
87+
88+
<div class="centered">
89+
<a name="startnavigation" id="startnavigation"></a>
90+
<div class="navbarWrapper">
91+
<div class="navbarContent">
92+
<img class="borderTL" src="/images/borderTL.gif" alt="" width="14" height="14" />
93+
<img class="borderTR" src="/images/borderTR.gif" alt="" width="14" height="14" />
94+
95+
<p>
96+
<a href="/">Home</a> &middot;
97+
<a href="/about.html">About</a> &middot;
98+
<a href="/news/">News</a> &middot;
99+
<a href="/docs/">Docs</a> &middot;
100+
<a href="/terms.html">Terms</a>
101+
</p>
102+
103+
<div class="roundedCornerSpacer">&nbsp;</div>
104+
</div><!-- .content -->
105+
<div class="bottomCorners">
106+
<img class="borderBL" src="/images/borderBL.gif" alt="" width="14" height="14" />
107+
<img class="borderBR" src="/images/borderBR.gif" alt="" width="14" height="14" />
108+
</div><!-- .bottomCorners -->
109+
</div><!-- .contentWrapper -->
110+
</div><!-- .centered -->
111+
112+
<div class="centered">
113+
<address>Copyright &copy; 2002-3 <a href="http://diveintomark.org/">Mark Pilgrim</a> and <a href="http://www.intertwingly.net/blog/">Sam Ruby</a></address>
114+
</div>
115+
116+
</body>
117+
</html>

alt-banners.html

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4+
<head>
5+
<title>Feed Validator: alternate banners</title>
6+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7+
<style type="text/css" media="screen">@import "css/common.css";
8+
@import "css/documentation.css";</style>
9+
<script type="text/javascript"><!-- --></script>
10+
</head>
11+
<body>
12+
13+
<div id="logo">
14+
<h1><a href="/"><span id="feed"><span id="f">F</span><span id="e1">E</span><span id="e2">E</span></span><span id="d">D</span> Validator</a></h1>
15+
<p>Alternate banners</p>
16+
<a class="skip" href="#startnavigation">Jump to navigation</a>
17+
</div> <!--logo-->
18+
19+
<div id="main">
20+
21+
<h2>Alternate "Valid RSS" banners</h2>
22+
23+
<p>If the default "valid RSS" banner is not your style, you can use any of these, or anything else you design, or nothing at all. The fact that you care enough to validate your feed is the important part; how you advertise it is up to you.</p>
24+
25+
<p style="line-height:300%">
26+
<img alt="Brockman Bulger's entry" title="by Brockman Bulger" src="/images/valid-rss-bbulger.png" width="88" height="31" /> &nbsp;
27+
<img alt="Dylan Parker's entry #2" title="by Dylan Parker" src="/images/valid-rss-dylan2.gif" width="88" height="31" /> &nbsp;
28+
<img alt="Neil Lee's entry with white background" title="by Neil Lee" src="/images/valid-rss-white-neil.gif" width="88" height="31" /> &nbsp;
29+
<img alt="Dougal Campbell's entry with white background" title="by Dougal Campbell" src="/images/valid-rss-white-dougal.gif" width="88" height="31" /> &nbsp;
30+
<img alt="Robert Guertin's entry" title="by Robert Guertin" src="/images/valid-rss-robert.jpg" width="88" height="31" /> &nbsp;
31+
<img alt="Jon Wiley's entry" title="by Jon Wiley" src="/images/valid-rss-jon-wiley.gif" width="88" height="31" /> &nbsp;
32+
<img alt="Jonathon Delacour's entry" title="by Jonathon Delacour" src="/images/valid-rss-jonathan.gif" width="88" height="31" /> &nbsp;
33+
<img alt="Lee O'Mara's entry" title="by Lee O'Mara" src="/images/valid-rss-lee.gif" width="88" height="31" /> &nbsp;
34+
<img alt="Aaron Swartz's entry" title="by Aaron Swartz" src="/images/valid-rss-aaron.png" width="88" height="31" /> &nbsp;
35+
<img alt="Dylan Parker's entry #1" title="by Dylan Parker" src="/images/valid-rss-dylan1.gif" width="88" height="31" /> &nbsp;
36+
<img alt="Shelley Powers' entry" title="by Shelley Powers" src="/images/valid-rss-shelley.gif" width="88" height="31" /> &nbsp;
37+
<img alt="Walt Dickinson's entry with orange background" title="by Walt Dickinson" src="/images/valid-rss-orange-walt.gif" width="88" height="31" /> &nbsp;
38+
<img alt="Walt Dickinson's entry with red background" title="by Walt Dickinson" src="/images/valid-rss-red-walt.gif" width="88" height="31" /> &nbsp;
39+
<img alt="Dylan Parker's entry #4" title="by Dylan Parker" src="/images/valid-rss-dylan4.gif" width="88" height="31" /> &nbsp;
40+
<img alt="Walk Dickinson's entry with grey background" title="by Walt Dickinson" src="/images/valid-rss-grey-walt.gif" width="88" height="31" /> &nbsp;
41+
<img alt="Neil Lee's entry with maroon background" title="by Neil Lee" src="/images/valid-rss-neil.gif" width="88" height="31" /> &nbsp;
42+
<img alt="Dylan Parker's entry #3" title="by Dylan Parker" src="/images/valid-rss-dylan3.gif" width="88" height="31" /> &nbsp;
43+
<img alt="Martin Murtonen's entry" title="by Martin Murtonen" src="/images/valid-rss-martin.gif" /> &nbsp;
44+
<img alt="Dougal Campbell's entry with black background" title="by Dougal Campbell" src="/images/valid-rss-black-dougal.gif" width="88" height="31" /> &nbsp;
45+
<img alt="Nicholas Avenell's entry" title="by Nicholas Avenell" src="/images/valid-rss-nicholas.png" width="88" height="31" /> &nbsp;
46+
<img alt="Aaron Swartz's entry, based on a design by antipixel.com" title="by Aaron Swartz (in the style of antipixel.com)" src="/images/valid-rss-antipixel.png" width="80" height="15" /> &nbsp;
47+
<img alt="Jack Greenwood's entry" title="by Jack Greenwood" src="/images/kiss-my-rss.gif" width="88" height="31" /> &nbsp;
48+
</p>
49+
50+
<p>Designers who wish to have their "valid RSS" banner listed here should email it to <a href="mailto:[email protected]">[email protected]</a>.</p>
51+
52+
</div><!--main-->
53+
54+
<div class="centered">
55+
<a name="startnavigation" id="startnavigation"></a>
56+
<div class="navbarWrapper">
57+
<div class="navbarContent">
58+
<img class="borderTL" src="/images/borderTL.gif" alt="" width="14" height="14" />
59+
<img class="borderTR" src="/images/borderTR.gif" alt="" width="14" height="14" />
60+
61+
<p>
62+
<a href="./">Home</a> &middot;
63+
<a href="./about.html">About</a> &middot;
64+
<a href="./news/">News</a> &middot;
65+
<a href="./docs/">Docs</a> &middot;
66+
<a href="./terms.html">Terms</a>
67+
</p>
68+
69+
<div class="roundedCornerSpacer">&nbsp;</div>
70+
</div><!-- .content -->
71+
<div class="bottomCorners">
72+
<img class="borderBL" src="/images/borderBL.gif" alt="" width="14" height="14" />
73+
<img class="borderBR" src="/images/borderBR.gif" alt="" width="14" height="14" />
74+
</div><!-- .bottomCorners -->
75+
</div><!-- .contentWrapper -->
76+
</div><!-- .centered -->
77+
78+
<div class="centered">
79+
<address>Copyright &copy; 2002-3 <a href="http://diveintomark.org/">Mark Pilgrim</a> and <a href="http://www.intertwingly.net/blog/">Sam Ruby</a></address>
80+
</div>
81+
82+
</body>
83+
</html>

0 commit comments

Comments
 (0)