SubContextList iter = xctxt.getSubContextList();
// System.out.println("iter: "+iter);
if (null != iter)
return iter.getLastPos(xctxt);
ContextNodeList cnl = xctxt.getContextNodeList();
if (cnl.size() == 0)
{
try
{
NodeIterator ni = (NodeIterator)cnl.clone();
int count = cnl.getCurrentPos();
while(null != ni.nextNode())
count++;
cnl.setLast(count);
return count;
}
catch(CloneNotSupportedException cnse){}
}
return cnl.size();
/*
// The code below has massive problem if inside of a predicate. -sb
if (cnl.size() == 0)
{