String stringValue = (String) result;
output.characters(stringValue.toCharArray(), 0, stringValue.length());
} else if (result instanceof List) {
if ("value-of".equals(localname)) {
PooledXPathExpression expr = XPathCache.getXPathExpression(interpreterContext.getPipelineContext(),
<BUG>wrapper.wrap(result), "string(.)");
</BUG>
String stringValue;
try {
stringValue = (String) expr.evaluateSingle();

String stringValue = (String) result;
output.characters(stringValue.toCharArray(), 0, stringValue.length());
} else if (result instanceof List) {
if ("value-of".equals(localname)) {
PooledXPathExpression expr = XPathCache.getXPathExpression(interpreterContext.getPipelineContext(),
wrapper.wrap(result), "string(.)", null);
String stringValue;
try {
stringValue = (String) expr.evaluateSingle();
