This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes Error! Unrecognized XSLTC extension 'org.apache.xalan.lib.Redirect:write' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Error! Unrecognized XSLTC extension Watch "Error! Unrecognized XSLTC extension New topic
Author

Error! Unrecognized XSLTC extension 'org.apache.xalan.lib.Redirect:write'

Vinit Gaba
Greenhorn

Joined: Aug 09, 2011
Posts: 7
Any idea of below error message.. I am using ant and junit to execute the build process.

and found below error message..

/Releases/buildRelease.xml:74: The following error occurred while executing this line:
/Releases/EnoviaNXP/src/Util/patch.xml:34: javax.xml.transform.TransformerException: java.lang.RuntimeException: Unrecognized XSLTC extension 'org.apache.xalan.lib.Redirect:write'

at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:716)
Vinit Gaba
Greenhorn

Joined: Aug 09, 2011
Posts: 7
Finally found that solution at http://www.ryanlowe.ca/blog/archives/001324_unrecognized_xsltc_extension_redirectwrite.php

[junitreport] ERROR: 'Unrecognized XSLTC extension 'org.apache.xalan.xslt.extensions.Redirect:write''

I Googled the error and found a solution. It says to change any instances of
xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect
to
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.

thanks !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error! Unrecognized XSLTC extension 'org.apache.xalan.lib.Redirect:write'
 
Similar Threads
junit and xalan
Error in configuring websphere with myeclipse
-classpath is an unrecognized option
Problem in Sending Mail Using Sockets
Exception while processing XSL