Added saxon-dom dependency and minor fixes.