transHand.setResult(domResult);
myBuffer.emit(transHand);
Element returnResult = ((Document)domResult.getNode())
.getDocumentElement();
XPath xpath1 = new DOMXPath("/painters/table[1]/row[1]");
Element painter1
= (Element)xpath1.selectSingleNode(returnResult);
String value1 = painter1.getAttribute("painter");
// check testXSLT.xml for the expected result
assertTrue(value1.equals("Matisse, Henri"));
XPath xpath2 = new DOMXPath("/painters/table[2]/row[2]");
Element painter2
= (Element)xpath2.selectSingleNode(returnResult);
String value2 = painter2.getAttribute("painter");
// check testXSLT.xml for the expected result
assertTrue(value2.equals("Monet, Claude"));
}
}