OpenID and MicroID

I’ve spent a lot of the last couple weeks looking at OpenID and related technologies more in detail. I had already placed my claim at ClaimID, but I’ve been looking more into the technology in the large. It just seemed to be in the air lately, along with some work reasons. I was pleasantly surprised to find that FluxCMS (here, on this site) is an OpenID server itself. Additionally, there was a MicroID function written within the site, but no integration. After a first draft and some suggestions from Flux-meister chregu, here’s a small patch to insert into the master.xsl template:

<meta name="microid">
<xsl:variable name="fullRequestUri">
  <xsl:value-of select="php:functionString
       ('bx_helpers_uri::getRequestUri','')" />
</xsl:variable> 
<xsl:attribute name="content">
<xsl:value-of select="php:functionString
                      ('bx_helpers_openid::microid',
                       'me@mydomain.tld', 
                       concat(substring($fullRequestUri,0,
                            string-length($fullRequestUri)),
translate(substring($fullRequestUri string-length($fullRequestUri),1), '/','')))"/> </xsl:attribute> </meta>