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.
A very simple jsp file, using valid XML and XSLT files, results in an error. I have no clue where the error originates, and can't make sense of the error messages. Research on the web seems to indicate a defective transformer; all the examples in NetBeans 4.0 Beta1 however seem to run OK. If you need al the source files (a zip of the project) let me know. leon Attached are the JSP file, the XML file and the XSL file.
Created attachment 17870 [details] JSP file using x:transform which compiles but fails in execution
I have found a solution to prevent the error. It was the stylesheet; the template generates a line like: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> but the transformer does not accept a version before the xmlns. The line: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> does work. I do not know whether this indicates an error in the templates used by NetBeans 4.0 and 3.6, or that the transformer is in error. It is however a strange error and it would be helpfull if the templates would be modified such that an out-of-the-box NetBeans with NB created templates would run without trouble.
reassigned to module that provides this template
Leon, which version of the following do you use? NetBeans JSTL JDK Thanks.
So I changed the templates of xsl files for NB 4.0. But the main problem is not in the template and the exception "java.lang.IllegalStateException: can't declare any more prefixes in this context is still here.
TM 5.0->TBD
Fixed sometime by 6.0
VERIFIED in Build 200709260000