/** * * Returns the position of the context node in the context node-set. * * @param context the context at the point in the * expression where the function is called * * @return a <code>Double</code> containing the context position * * @see Context#getPosition() */ public static Double evaluate(Context context) { return new Double( context.getPosition() ); }
throw new XPathSyntaxException(this.getText(), context.getPosition(), "Unions are only allowed over node-sets");