├── .gitignore
├── i
├── error.png
├── grad.png
├── info.png
├── logo.png
├── valid.png
├── warn.png
├── favicon.png
├── invalid.png
└── style.css
├── examples
├── xhtml_xmlns.html
├── xhtml_no_head.html
├── xhtml_no_profile.html
├── values.html
├── xhtml_wrong_profile.html
├── xhtml_multi_profile.html
├── include.html
├── implied n.html
├── example 6.html
├── hcard in atom.atom
├── geo 1.html
├── missing_fields.html
├── example 2.html
├── example 1.html
├── ignored_classes.html
├── obfuscated_email.html
├── geo 2.html
├── include 2.html
├── orphan_adr.html
├── example 4.html
├── im invalid.html
├── example 5.html
├── value_problems 1.html
├── example 10.html
├── im valid.html
├── value_problems 2.html
├── example 3.html
├── include 3.html
├── nested.html
├── example 11.html
├── example 7.html
├── example 9.html
├── example 8.html
└── acid.html
├── robots.txt
├── compilelangs.sh
├── xmlcatalog.xml
├── README.md
├── index.php
├── referrer
└── index.php
├── xmlcatalog
├── xhtml-inlstyle-1.mod
├── xhtml-charent-1.mod
├── xhtml-datatypes-1.mod
├── xhtml-framework-1.mod
├── xhtml-special.ent
├── xhtml-attribs-1.mod
├── xhtml-events-1.mod
├── xhtml11-model-1.mod
├── xhtml-lat1.ent
├── xhtml-qname-1.mod
├── xhtml11.dtd
└── xhtml-symbol.ent
├── LICENSE
├── xslt
├── COPYING
├── include.xslt
└── html2xhtml.xslt
├── locale
├── en
│ └── LC_MESSAGES
│ │ ├── props.po
│ │ └── main.po
├── fr
│ └── LC_MESSAGES
│ │ ├── props.po
│ │ └── main.po
├── cs
│ └── LC_MESSAGES
│ │ ├── props.po
│ │ └── main.po
└── pl
│ └── LC_MESSAGES
│ ├── props.po
│ └── main.po
├── encode
└── index.php
├── class
├── validationresult.php
├── vcard.php
└── loader.php
└── autotest.php
/.gitignore:
--------------------------------------------------------------------------------
1 | *.mo
2 |
--------------------------------------------------------------------------------
/i/error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kornelski/hCardValidator/HEAD/i/error.png
--------------------------------------------------------------------------------
/i/grad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kornelski/hCardValidator/HEAD/i/grad.png
--------------------------------------------------------------------------------
/i/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kornelski/hCardValidator/HEAD/i/info.png
--------------------------------------------------------------------------------
/i/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kornelski/hCardValidator/HEAD/i/logo.png
--------------------------------------------------------------------------------
/i/valid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kornelski/hCardValidator/HEAD/i/valid.png
--------------------------------------------------------------------------------
/i/warn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kornelski/hCardValidator/HEAD/i/warn.png
--------------------------------------------------------------------------------
/i/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kornelski/hCardValidator/HEAD/i/favicon.png
--------------------------------------------------------------------------------
/i/invalid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kornelski/hCardValidator/HEAD/i/invalid.png
--------------------------------------------------------------------------------
/examples/xhtml_xmlns.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/examples/xhtml_no_head.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/examples/xhtml_no_profile.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | No profile
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow: /examples/
3 | Disallow: /referer
4 |
5 | User-agent: Spinn3r
6 | Disallow: /
7 |
8 | User-agent: Tailrank
9 | Disallow: /
10 |
11 | User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1; aggregator:Tailrank (Spinn3r 2.1); http://spinn3r.com/robot) Gecko/20021130
12 | Disallow: /
13 |
14 |
--------------------------------------------------------------------------------
/examples/values.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Values
4 |
5 |
6 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/examples/xhtml_wrong_profile.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Wrong profile
5 |
6 |
7 |
8 |
9 |
10 |
11 | hcard! not vcard
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/examples/xhtml_multi_profile.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Wrong profile
5 |
6 |
7 |
8 |
9 |
10 |
11 | hcard! not vcard
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/compilelangs.sh:
--------------------------------------------------------------------------------
1 | msgfmt /www/hcard/locale/en/LC_MESSAGES/errors.po -o /www/hcard/locale/en/LC_MESSAGES/errors.mo
2 | msgfmt /www/hcard/locale/en/LC_MESSAGES/props.po -o /www/hcard/locale/en/LC_MESSAGES/props.mo
3 | msgfmt /www/hcard/locale/en/LC_MESSAGES/main.po -o /www/hcard/locale/en/LC_MESSAGES/main.mo
4 | msgfmt /www/hcard/locale/pl/LC_MESSAGES/errors.po -o /www/hcard/locale/pl/LC_MESSAGES/errors.mo
5 | msgfmt /www/hcard/locale/pl/LC_MESSAGES/props.po -o /www/hcard/locale/pl/LC_MESSAGES/props.mo
6 | msgfmt /www/hcard/locale/pl/LC_MESSAGES/main.po -o /www/hcard/locale/pl/LC_MESSAGES/main.mo
7 |
8 | #sudo /usr/local/apache/sbin/apachectl restart
9 |
--------------------------------------------------------------------------------
/examples/include.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Include test
4 |
5 |
6 |
7 |
8 |
9 |
F:
10 |
0401950302
11 |
12 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/examples/implied n.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Missing fields test
4 |
5 |
6 |
7 |
8 |
given-name family-name
9 |
10 |
11 |
They call me Bond, James Bond.
12 |
13 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/examples/example 6.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Valid 6 tricky bday
4 |
5 |
6 |
7 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/examples/hcard in atom.atom:
--------------------------------------------------------------------------------
1 |
2 |
3 | Atom Robots
4 | from outer semantic space!
5 |
6 | http://pornel.net/atom/2008/hcard-example
7 | 2008-06-15T12:00:01+01:00
8 |
9 | http://pornel.net/atom/2008/hcard-example/1
10 | 2008-06-15T12:00:01+01:00
11 |
12 | hCard
13 | Killer Robot
14 |
15 |
16 |
--------------------------------------------------------------------------------
/xmlcatalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](http://unmaintained.tech/ "This project is not actively maintained")
2 |
3 | #hCard Validator
4 |
5 | Conformance checker for the [hCard microformat](http://microformats.org/wiki/hcard).
6 |
7 | It's a tool written in a mix of PHP and XSLT that checks hCards against the specification.
8 |
9 | ##Live demo
10 |
11 | You can use live version at [hcard.geekhood.net](http://hcard.geekhood.net/).
12 |
13 | ##TODO
14 |
15 | * hCard validator doesn't support latest version of the spec with value class pattern.
16 | * other microformats are not supported. I'd like this project to evolve into conformance checker for all microformats.
17 |
18 | [See issues](http://github.com/pornel/hCardValidator/issues)
19 |
20 | ##Running
21 |
22 | [Setup instructions](http://github.com/pornel/hCardValidator/wiki/Installation)
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 | init($_SERVER['HTTP_HOST'] == 'hcard');
18 | $c->run();
19 | }
20 | catch(Exception $e)
21 | {
22 | @header('HTTP/1.1 500 oops');
23 | @header("Content-Type:application/xhtml+xml;charset=UTF-8");
24 | ?>
25 |
26 | hCard Validator – Error
27 | Internal Error
28 | Because of an error in the validator it was impossible to check this document.
29 | '.Controller::escapeXML($e).''; ?>
30 |
31 |
32 |
2 |
3 | Geo 1
4 |
5 |
6 |
7 |
8 |
9 |
10 | Geo test
11 | 37.186013
12 | -122.082932
13 |
14 |
15 |
24 |
25 |
28 |
29 |
30 |