Need to do a bitwise test inside your XSLT – well without native support you can use the following…
<xml/>
<br /> <stuff><br /> Value being checked = <xsl:value-of select="$testvar"><br /> test bit 1:<xsl:value-of select="number($testvar) mod 2)=1"><br /> test bit 2:<xsl:value-of select="floor((number($testvar) div 2) mod 2)=1"><br /> test bit 3:<xsl:value-of select="floor((number($testvar) div 4) mod 2)=1"><br /> test bit 4:<xsl:value-of select="floor((number($testvar) divmod 2)=1"><br /> and so on...</xsl:value-of></xsl:value-of></xsl:value-of></xsl:value-of></xsl:value-of></stuff></p> <p>



