public Object exec(List arguments) throws TemplateModelException {
  if (arguments.size() != 1) {
    throw new TemplateModelException("Expecting exactly one argument - an XPath expression");
  }
  return deriveModel(navigator.applyXPath(nodes,(String)arguments.get(0),namespaces));
}

public Object exec ( List arguments ) throws TemplateModelException { if ( arguments . size ( ) != 1 ) { throw new TemplateModelException ( "Expecting exactly one argument - an XPath expression" ) ; } return deriveModel ( navigator . applyXPath ( nodes , ( String ) arguments . get ( 0 ) , namespaces ) ) ; }
evaluates an xpath expression on xml nodes in this model .
