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.

Bug 49564 - xls transform results in "can't declare any more prefixes in this context"
Summary: xls transform results in "can't declare any more prefixes in this context"
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-25 17:18 UTC by leonw
Modified: 2007-09-26 23:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JSP file using x:transform which compiles but fails in execution (258 bytes, text/plain)
2004-09-25 17:20 UTC, leonw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leonw 2004-09-25 17:18:25 UTC
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.
Comment 1 leonw 2004-09-25 17:20:33 UTC
Created attachment 17870 [details]
JSP file using x:transform which compiles but fails in execution
Comment 2 leonw 2004-09-25 18:07:27 UTC
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. 
Comment 3 Pavel Buzek 2004-09-27 18:26:33 UTC
reassigned to module that provides this template
Comment 4 Petr Jiricka 2004-10-20 11:25:18 UTC
Leon, which version of the following do you use?

NetBeans
JSTL
JDK

Thanks.
Comment 5 Petr Pisl 2004-10-28 08:55:33 UTC
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.
Comment 6 Jaroslav Pospisil 2006-03-13 13:35:25 UTC
TM 5.0->TBD
Comment 7 tonybeckham 2007-09-26 23:34:37 UTC
Fixed sometime by 6.0
Comment 8 tonybeckham 2007-09-26 23:35:20 UTC
VERIFIED in Build 200709260000