This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The following exception is thrown when you try to get transformer on JDK1.4.2_10 for performance.xsl and suite.xsl templates: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: xsl:sort is not allowed in this position in the stylesheet! To test it use something like this: public static void main(String[] args) throws Exception { File dir = new File("D:\\Development\\cvs\\nb_all\\xtest\\lib\\xsl"); File[] files = dir.listFiles(); for(int i=0;i<files.length;i++) { if(!files[i].getName().endsWith("xsl")) { continue; } TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance(); StreamSource xslSource = new StreamSource(files[i]); try { Transformer transformer = tFactory.newTransformer(xslSource); } catch (Exception e) { System.out.println("FILE="+files[i]); System.out.println("EXCEPTION="+e.getMessage()); } } }
Hmm, first of all investigation and stuff, I think it's time to upgrade, isn't it ? We've already broke JDK 1.4.2 for NB , why not do so for xtest module ?
I don't have any strong argument why not. It just seems to me better to not break it without a good reason.
Good reason : save the time that has to be spend to fix this issue. What do you think: it's reasonable, isn't it ?
And spend time to test everything works with 1.5....
Well, I think you'll have to do testing as well in a near future, so what not now? Anyway, Jirka everything is working (mean xtest), it has been running with this change few months and nobody reported any problems. So, I really don't think we have to hold 1.4.2 compatibility just because xtest-pes / beetle / xtest-db are still living in the old days.
OK, I will test PES with JDK1.5 and fix possible problems.
Fixed. xsl:sort has to be first element inside xsl:for-each. /cvs/xtest/lib/xsl/performance.xsl,v <-- performance.xsl new revision: 1.6; previous revision: 1.5 done Checking in suite.xsl; /cvs/xtest/lib/xsl/suite.xsl,v <-- suite.xsl new revision: 1.15; previous revision: 1.14
Verified.