Fixed bug #2256. Updated for newer libxml2/libxslt.