XSL bitwise comparisons
13-Dec-2010
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 /> [...]






