Monday, August 27, 2007

Structured Information?

From Jeff, a sample of an OpenID token

<openid:OpenIDToken xmlns:openid="http://specs.openid.net/auth/2.0">
openid.ns:http://specs.openid.net/auth/2.0
openid.op_endpoint:https://openidcards.sxip.com/op/
openid.claimed_id:https://openidcards.sxip.com/i/jbohren
openid.response_nonce:2007-08-27T12:13:31Z0
openid.mode:id_res
openid.identity:https://openidcards.sxip.com/i/jbohren
openid.return_to:https://openidcards.sxip.com/demorp/
openid.assoc_handle:e88bb8e5c4577c85
openid.signed:op_endpoint,claimed_id,identity,return_to,response_nonce,assoc_handle
openid.sig:S4TcYfUDeUOIiCg0idtmJYijKGQ=
openid.ns.ext1:http://openid.net/srv/ax/1.0-draft4
openid.ext1.mode:fetch_response
</openid:OpenIDToken>


now that's some XML! With the logical pieces marked up in this manner, I would quickly whip up some XSLT to do some powerful processing of the token contents. For instance, color everything red. Or make it blink.

No comments: