Yadis/XRDS Service Element URI Question

David Fuelling sappenin at gmail.com
Sat Feb 10 18:26:15 UTC 2007

Hey All,

I'm working on a draft OpenId 2.0 extension [1] and am looking for guidance
on how to define a Yadis Service Element that includes a URI Template
(instead of a real URI).

At first, I thought that the following would be ok:

<Service xmlns="xri://$xrd*($v*2.0)">

However, 'https://{username}.example.com/' is not a valid URI, since the '{'
and '}' characters are reserved per the URI specification.

So, should I simply "percent encode" the URI above to be
'https://%7Busername%7D.example.com/', or should I define a new Service
Element child, like the following:

<Service xmlns="xri://$xrd*($v*2.0)">
  <TemplateURI>https://{username}.example.com/</TemplateURI >

Does Yadis/XRDS require the presence of a URI child in a service element?
Is it legal to define new children elements?  Is that advisable?




More information about the yadis mailing list