public void process(XPathContext c) throws XPathException {
try {
ValueRepresentation actual = evaluateVariable(c);
if (actual instanceof NodeInfo) {
actual = new SingletonItem((NodeInfo) actual);
}
((Value) actual).process(c);
} catch (XPathException err) {
err.maybeSetLocation(this);
throw err;