new StreamResult(result),
false,
Validation.PRESERVE,
null);
SequenceReceiver out = c2.getReceiver();
out.open();
node.copy(out, NodeInfo.ALL_NAMESPACES, true, locationId);
out.close();
return new StringValue(result.toString());
} catch (XPathException err) {
throw new DynamicError(err);