If the only message you are seeing is "1 error reported" then the first thing you need to do is change the way you are doing your testing so that you get to see the real error messages. This is what I get:
Code:
Static error in xsl:value-of/@select on line 72 column 54 of test1.xsl:
XPTY0004: Arithmetic operator is not defined for arguments of types (xs:string, xs:integer)
Static error in xsl:value-of/@select on line 75 column 49 of test1.xsl:
XPTY0004: Required item type of first argument of format-number() is xs:numeric; supplied
value has item type xs:string
Error
Errors were reported during stylesheet compilation