Reorder load_xml_doc() to ensure that document.XSLDocument is set before calling functions that may access it.
Reorder load_xml_doc() to ensure that document.XSLDocument is set before calling functions that may access it.

cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw