After we upgraded to J2SDK 1.4.2, Tomcat 5.19 and JSTL 1.1 we received the
following error when using the <x:transform .../> tag:

javax.xml.transform.TransformerException:
java.lang.IllegalStateException:can't declare any more prefixes in this
context

Jason West seems to have had the same problem (see
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06273.html)
but the resolution posted by Martin Cooper did not help on our server.

After a few days we found the problem to be an incorrectly formatted
stylesheet tag in the XSL file. The file causing the error looked like this:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

After we moved the version attribute after the namespace declaration
everything worked fine:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">

Hope this helps,

Nico Krijnen

--------------------
Invision Interactive Communication
Bouwerij 24B
1185 XX Amstelveen
The Netherlands
Tel:      +31 20 441 53 33
www:      www.invision.nl
--------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to