xml-stylesheet pattern fixed and better error reporting when no root tag.