Changed one instace of xsl:if to version=1.0 as workaroud