/** * Compile an XPath expression in the context of this stylesheet element * @param expression the source text of the XPath expression * @return the compiled expression tree for the XPath expression */ public Expression makeExpression(String expression) throws XPathException { try { return ExpressionTool.make(expression, staticContext, 0, Token.EOF, getLineNumber(), getPreparedStylesheet().isCompileWithTracing()); } catch (XPathException err) { err.setLocator(this); compileError(err); ErrorExpression erexp = new ErrorExpression(err); erexp.setLocationId(allocateLocationId(getSystemId(), getLineNumber())); erexp.setContainer(this); return erexp; } }
/** * Compile an XPath expression in the context of this stylesheet element * @param expression the source text of the XPath expression * @return the compiled expression tree for the XPath expression */ public Expression makeExpression(String expression) throws XPathException { try { return ExpressionTool.make(expression, staticContext, 0, Token.EOF, getLineNumber(), getPreparedStylesheet().isCompileWithTracing()); } catch (XPathException err) { err.setLocator(this); compileError(err); ErrorExpression erexp = new ErrorExpression(err); erexp.setLocationId(allocateLocationId(getSystemId(), getLineNumber())); erexp.setContainer(this); return erexp; } }
} else { ErrorExpression erexp = new ErrorExpression(err); erexp.setLocationId(allocateLocationId(getSystemId(), getLineNumber())); return erexp;
} else { ErrorExpression erexp = new ErrorExpression(err); erexp.setLocationId(allocateLocationId(getSystemId(), getLineNumber())); return erexp;