Documenting what I had to do.
Used XSLT from here:
nosetest xslt
Problems and Fixes:
- Firefox was inserting “transformiix” as the root element, this caused the DOCTYPE to be spit out. I fixed by adding:
doctype-public="-//W3C//DTD HTML 4.0//EN"/ to
And removed the doctype declartion in the above xslt
-
My version of casperjs was setting xml namespace to
xmlns="http://www.w3.org/1999/xhtml
After unsuccessfully trying to match the namespace in the xslt, I gave up and removed the namespace from the xunit xml, by
sed -i 's@ xmlns="http://www.w3.org/1999/xhtml" @ @' "output.xml"
-
Inserted the style into xml so can be rendered in the browser
sed -i 's@ encoding="UTF-8"?>@ encoding="UTF-8"?>@' "output.xml"
- Removed timestamp info from the xslt as it was in UTC timezone and could be very confusing when looking at the results (attempts to convert to my TZ in client were unsuccessful)