On Oct 25, 2005, at 11:04 AM, James M Snell wrote:
All-in-one example

The x:group attribute links the two alternates into a single grouping; the x:mirror specifies the mirrors for each link. nf:follow="no" is my Atom Link No Follow extension that tells clients not to automatically download the enclosure. Dumb clients will see what amounts to the current status quo, two different enclosures of different types. Smart clients will see the mirrors, the grouping and the no-follow instruction.

<link rel="enclosure" href="http://example.com/softwarepackage.zip"; type="application/zip" x:group="software-package" nf:follow="no"> <x:mirror href="http://example2.com/softwarepackage.zip"; title="California Server" /> <x:mirror href="http://example3.com/softwarepackage.zip"; title="European Server" />
</link>
<link rel="enclosure" href="http://example.com/ softwarepackage.tar.gz" type="application/x-gzip" x:group="software- package" nf:follow="no"> <x:mirror href="http://example2.com/softwarepackage.tar.gz"; title="California Server" /> <x:mirror href="http://example3.com/softwarepackage.tar.gz"; title="European Server" />
</link>

Thoughts?

The only thing I would change is the name of x:mirror/@title to make it clear that it isn't intended(?) to replace the parent link's @title. My current favorite name is "label".

Reply via email to