<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

    <xsl:output method="xml" encoding="UTF-8" indent="no"/>

    <xsl:template match="/providers">
        <xsl:apply-templates select="./provider[@enabled='1']"/>
    </xsl:template>

    <xsl:template match="provider">
        <hbox class="socauthProvider"
              align="center"
              onclick="YaAuth.handleSocProviderClick(event);"
              tooltiptext="{@display_name}"
              ybar_prov_id="{@id}"
              ybar_prov_code="{@code}"
              ybar_prov_url="{@url}"
              ybar_prov_primary="{@primary}"
              >
            <image src="{@icon}" width="16" height="16"/>
            <label value="{@display_name}"/>
        </hbox>
    </xsl:template>
</xsl:stylesheet>
