I Googled the error and found a solution. It says to change any instances of
xmlns:redirect="http://xml.apache.org/xalan/redirect" in XSL transforms that are being used.
Well, that's almost a solution. A developer is left to figure out which XSL file to edit in the case of junitreport. Here's what I found out.
The junitreport task uses a default XSL transform file to make the JUnit report but the transform can be overridden. The default transform file is located in [ant directory]\etc\junit-frames.xsl.