TinyBuilder result = new TinyBuilder();
factory.newTransformer().transform(source, result);
contextNode = (Node)result.getCurrentDocument();
}
DocumentInfo doc = ((NodeInfo)contextNode).getDocumentRoot();
NamePool pool = doc.getNamePool();
if (pool == null)
{
pool = NamePool.getDefaultNamePool();
doc.setNamePool(pool);
}
Expression expression = Expression.make(str, new Saxon6Context(pool, resolver));
Context context = new Context();
context.setContextNode((NodeInfo)contextNode);