DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21243>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21243 <xsl:comment> in xsl causes java null pointer exception [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-07-01 21:54 ------- Hello Eric, using a recent Cocoon 2.0.x everything is ok, I get the following exception: ERROR (2003-07-01) 23:45.37:531 [core.xslt-processor] (/cocoon/jh/comment) Thread-10/TraxErrorHandler: File file:/D:/xml/comment.xsl; Line 4; Column 14; xsl:comment ist an dieser Position in der Formatvorlage nicht zulässig! ; SystemID: file:/D:/xml/comment.xsl; Line#: 4; Column#: 14 javax.xml.transform.TransformerException: xsl:comment ist an dieser Position in der Formatvorlage nicht zulässig! at org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:919) at org.apache.xalan.processor.StylesheetHandler.getProcessorFor(StylesheetHandler.java:396) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:630) Translated into English: xsl:comment is not allowed at this position. That's correct: <xsl:comment/> is not allowed as top-level element in the stylesheet. Xalan used in Cocoon 2.0.5-dev (=> version 2.5.1) no longer gives a NullPointerException (like 2.3.1 in Cocoon 2.0.4), but a TransformerException. So everything is ok now. Joerg