Got the mysterious error “Missing attribute test”.
Finally, noticed that I had the “t” missing on the keyword “test”:
INCORRECT
<xsl:if est=”RateAndCharges/@SpecialChargeOrAllowanceCode != ‘ABC’ “>
CORRECT
<xsl:if test=”RateAndCharges/@SpecialChargeOrAllowanceCode != ‘ABC’ “>