[uf-discuss] permalinks for microformat chunks of pages: use the
'id' attribute on root microformat elements
Jeremy Keith
jeremy at adactio.com
Fri Jun 23 08:44:30 PDT 2006
Tantek wrote:
> Not that it is ambiguous at all in this case, but in general using
> rel-tag
> tags/categories provides a much better specificity, and provides a
> nice UI
> hook for what did the author *mean* by Brighton? (Imagine
> distinguishing
> Paris, France vs. Paris, Texas for example). And in this case, it
> wouldn't
> hurt to mark it up as the locality as well.
>
> <div class="vcard">
> <span class="fn">Jeremy Keith</span> in
> <span class="adr">
> <a class="category locality" rel="tag"
> href="http://en.wikipedia.org/wiki/Brighton">Brighton</a>
> </span>
> </div>
That looks a good solution. Leaving aside the reltag, the category
solution could still be used with a unique identifier for the document:
<div class="vcard">
<span class="fn">Jeremy Keith</span> in
<span class="adr">
<a class="category locality" href="#brighton">Brighton</a>
</span>
</div>
Here, the category is pointing to a part of the current document that
has been uniquely identified with id = "brighton". This wouldn't be a
good candidate for a reltag (it would create a circular reference),
but it would solve the problem of grouping together many hcards into
different groups on a single document... thereby paving the way for
parsers to extract just the hcards for people in a particular category.
Bye,
Jeremy
--
Jeremy Keith
a d a c t i o
http://adactio.com/
More information about the microformats-discuss
mailing list