String language = null;
Element selement = null;
for (int i = 0; i < list.getLength(); i++) {
language = (selement = (Element)list.item(i)).
getAttribute("type");
final Interpreter interpret =
ctx.getInterpreterPool().getInterpreter(doc, language);
if (interpret != null) {
final StringBuffer script = new StringBuffer();
for (Node n = selement.getFirstChild(); n != null;
n = n.getNextSibling()) {
script.append(n.getNodeValue());
}
try {
interpret.evaluate
(new StringReader(script.toString()));
} catch (IOException io) {
// will never appeared we don't use a file
} catch (InterpreterException e) {
if (ua != null)