profile-uris: Difference between revisions
Line 72: | Line 72: | ||
<code><head profile="http://www.ietf.org/rfc/rfc2731.txt http://www.w3.org/2006/03/hcard"></code> | <code><head profile="http://www.ietf.org/rfc/rfc2731.txt http://www.w3.org/2006/03/hcard"></code> | ||
W3C HTML validator has very poor validation of attributes and is technically unable to check this case. The HTML DTD however defines <code>profile</code> attribute as <code>%URI</code> (it's alias for <code>CDATA</code>), same as <code><a href& | W3C HTML validator has very poor validation of attributes and is technically unable to check this case. The HTML DTD however defines <code>profile</code> attribute as <code>%URI</code> (it's an alias for <code>CDATA</code>), same as <code><a href></code> attribute. | ||
==See also== | ==See also== |
Revision as of 11:44, 26 May 2008
Profile URIs
In hcalendar-issues, it is ACCEPTED that each microformat should have a profile URI, like the XFN profile.
Some issues include:
- what domain to use? Candidates include:
- microformats.org
- www.w3.org
- xmdp.org
- what about versioning? How to keep in sync with the wiki and test materials?
- what profile URI to use for combinations, such as hcard and hcalendar?
- note HTML4.01 states "that one or more meta data profiles, [are] separated by white space"; though it's simpler for authors if they can just use one profile URI.
- More profiles are needed.
One proposal is: use www.w3.org, following W3C namespace policy. As to versioning, change the profile whenever the wiki changes (within some reasonable latency, say, a couple weeks or a month). For example: an hCard Profile at w3.org, and discussion: an hCard profile that seems to work with GRDDL.
Existing profile URIs
Combined Profile
The following URL covers all non-draft Microformats as of March 2008, except XMDP and XOXO. You can mix and match it with other XMDP profiles for new/draft microformats.
Individual Microformats
Validator warning
Due to inconsistent wording of the HTML specs, HTMLTidy (and other tools?) give "Warning: <head> escaping malformed URI reference" when more than one profile is used, e.g.
<head profile="http://www.ietf.org/rfc/rfc2731.txt http://www.w3.org/2006/03/hcard">
W3C HTML validator has very poor validation of attributes and is technically unable to check this case. The HTML DTD however defines profile
attribute as %URI
(it's an alias for CDATA
), same as <a href>
attribute.
See also
- Profile URI examples, in the wild
- faqs-for-rdf for discussion of connecting microformats to URIs.
- hcard-profile.