The syntax for calling out to Java depends on which XSLT processor you are using.
However, the test attribute of xsl:if should never include curly braces: it's an XPath expression, not an attribute value template. So it will be something like
Code:
<xsl:if test="java:method(a,b,c) = 'xyz'">
...
</xsl:if>