props = new Properties(outputProperties);
final NamePool namePool = context.getController().getNamePool();
for (Iterator it = serializationAttributes.keySet().iterator(); it.hasNext();) {
Integer key = (Integer) it.next();
Expression exp = (Expression) serializationAttributes.get(key);
String value = exp.evaluateAsString(context);
try {
setSerializationProperty(props, key.intValue(), value, namePool, nsResolver);
} catch (DynamicError e) {
e.setXPathContext(context);
e.setLocator(getSourceLocator());