When I construct an xpath expression dynamically, before I use it in an eval() I'd like to test to make sure it's proper syntax.  The eval() throws Java syntax errors that I'd like to be able to catch and handle myself within the XSL.     I'm trying to get <xsl:if test="saxon:expression($xpath)"> to work but something's not configured right because I'm getting "Cannot find a matching 1-argument function named {http://icl.com/saxon}expression();"

Am I on the right track?  Is there a way to catch the error from within XSL?

Thanks for your reply,
Todd Gochenour