{
try
{
final DOMXPath path = new DOMXPath( str );
path.setNamespaceContext( new JaxenResolver(resolver) );
return path.numberValueOf( contextNode );
}
catch( final Exception e )
{
if (getLogger().isDebugEnabled()) {
getLogger().debug("Failed to evaluate '" + str + "'", e);