<>
<>
<>
<>...</>
</>
</>
</>
a@name
is not defined@class
(including body)
<p class="vcard">
<span class="fn n">
<span class="given-name">Ryan</span>
<span class="family-name">King</span>
</span>
</p>
<span class="vcard">
<span class="fn n">
<span class="given-name">Ryan</span>
<span class="family-name">King</span>
</span>
</span>
This hCard's fn
is "Ryan King".
(remember whitespace collapsing rules)
.value
<span class="vcard">
<span class="fn n">
...
</span>
<span class="title">I'm an
<span class="value">Engineer</span>
at Technorati.
</span>
</span>
title
is just "Engineer"
Applying HTML semantics to make publishing smoother.
<span class="vcard">
<span class="fn n">
...
</span>
<a class="email" href="mailto:ryan@theryanking.com?Subject=nice+presentation">
email me!
</a>
</span>
email
is just "ryan@theryanking.com"
elements | attribute |
---|---|
a, area | href |
img | src |
object | data |
<a class="url" href="foo">bar</a>
<area class="url" href="foo">bar</a>
<img class="url" src="foo" alt="bar" />
<object class="url" data="foo">bar</a>
the value is "foo"
element | attribute |
---|---|
img | alt |
area | alt |
abbr | title |
<img class="fn" alt="foo" src="bar" />
<area class="fn" alt="foo" href="bar" />
<abbr class="fn" title="foo">bar</abbr>
the value is "foo"
<table>
<tr>
<th>Time</th>
<th id="location"><span class="location">Coleman</span></th>
</tr>
<tr>
<th id="s1115">
<abbr class="dtstart" title="2007-05-12T11:15-0600">11:15</abbr>
</th>
<td headers="location s1115" class="vevent">
<span class="summary">Parsing Microformats...</span>
</td>
</tr>
</table>
<span class="vcard">
<span id="name" class="fn n">...</span>
</span>
....
<span class="vcard">
<a class="include" href="#name"></a>
...
</span>
<xsl:if test="contains(
concat (
' ',
concat(
normalize-whitespace(@class),
' '
)
),
' vcard '
)" >
Tokenized attributes are not easy.
.vcard
.vcard .n
.vcard .n .given-name
.fn
with only one .vcard
ancestor"?