Well the bugs I was chasing on XSLT were ... in libxml ... grrrr: - xpath.c: ouch don't free NULL, rare case fixed - tree.c: don't coalesce text nodes if they don't have the same behaviour wrt escaping on output Daniel