Merging changes made by @rosiel. Cleanup to the XSLT to work with any schema and coding standards.