By popular demand, I'm sending this out in email for quick review :)
Based on
http://svn.apache.org/viewvc/incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/abdera/RequestUrlTemplate.java?revision=656522&view=markup
I think the following XRDS discovery document is correct:
<XRDS xmlns="xri://$xrds">
<XRD xmlns:simple="http://xrds-simple.net/core/1.0"
xmlns="xri://$XRD*($v*2.0)" xmlns:os="http://ns.opensocial.org/"
version="2.0">
<Type>xri://$xrds*simple</Type>
<Service>
<Type>http://ns.opensocial.org/people/0.8</Type>
<os:URI-Template>http://localhost:8080/rest/people/{guid}/{selector}
<http://localhost:8080/people/%7Bguid%7D/%7Bselector%7D></URI-Template>
</Service>
<Service>
<Type>http://ns.opensocial.org/activities/0.8</Type>
<os:URI-Template>http://localhost:8080/rest/activities/{guid}/{selector}
<http://localhost:8080/activities/%7Bguid%7D/%7Bselector%7D></URI-Template>
</Service>
<Service>
<Type>http://ns.opensocial.org/appdata/0.8</Type>
<os:URI-Template>http://localhost:8080/rest/appdata/{guid}/{selector}
<http://localhost:8080/appdata/%7Bguid%7D/%7Bselector%7D></URI-Template>
</Service>
</XRD>
</XRDS>
...where guid is a globally unique user id, selector is in [EMAIL PROTECTED],
@self,
@friends, ...}. Obviously localhost:8080 should be auto-configured but to
start with this could just be a static file and edited separately from the
config.
This file can be hosted anywhere (static path?). The only requirement is
that it be discoverable from whatever the sample container considers to be
its well known URL; so if that's http://localhost:8080/, a simple option is
to add a header
X-XRDS-Location: http://localhost:8080/.../opensocial_disco.xrds
to GET requests for that that root document. There are more complicated
discovery options too if you like.