@Override
public XQExpression visit(CompositePath fragment, XQueryContext ctxt) throws XQueryException {
XQExpression filter = fragment.getFilterExpr();
if(!(filter instanceof PathVariable)) {
XQExpression src = fragment.getSourceExpr();
src.visit(this, ctxt);
buf.append('/');
}
filter.visit(this, ctxt);
return fragment;
}