For the record, the additional loop that the div would save in a DOM-based client is not that hard:
copyLangAndBase(atomTextCostruct, targetDivInTemplate);
for (Node n = atomTextCostruct.getFirstChild(); n != null; n = n.getNextSibling()) {
targetDivInTemplate.appendChild(templateXhtmlDocument.importNode(n, true));
}
Is that too much to ask from clients?
-- Henri Sivonen [EMAIL PROTECTED] http://iki.fi/hsivonen/