On Jan 14, 2006, at 4:24 PM, Allen Gilliland wrote:
it wouldn't necessarily be just from browser locale settings, but I
agree that when a single url can be viewed in multiple languages that
can be very troublesome.
Atom format allows the specification of multiple alternate links
(i.e. permalinks)
for an entry, one for each combination of language and content type.
From the spec:
"atom:entry elements that contain no child atom:content element
MUST contain at least one atom:link element with a rel attribute
value of 'alternate'."
That saying every entry must have a permalink.
"atom:entry elements MUST NOT contain more than one atom:link
element
with a rel attribute value of "alternate" that has the same
combination of type
and hreflang attribute values."
That says that an entry can have multiple permalinks, one for each
combination
of language and content-type.
So for example, if I had a blog entry called The Boat in English and
Das Boot
in German there might be two permalinks in an entry like so:
<entry>
<title . . ./>
<updated . . ./>
. . .
<link rel="alternate" type="text/html"
href="http://localhost/rss/davesblog?entry=the_boat"
hreflang="en-US" />
<link rel="alternate" type="text/html"
href="http://localhost/rss/davesblog/de?entry=das_boot"
hreflang="de-DE" />
<link rel="alternate" type="audio/mp3"
href="http://localhost/rss/davesblog/de/dasboot.mp3"
hreflang="de-DE" />
. . .
</entry>
And that third link is an audio track that goes along with the entry ;-)
I'm not sure what we do with RSS feeds, but if we all switch over to
Atom format, every 'ting cool mon.
- Dave