cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Harms" <>
Subject Bug in jx:macro?
Date Thu, 13 May 2004 10:53:49 GMT

I noticed a strange behaviour in the JXTemplateGenerator (cocoon 2.1.4).
If you put a whitespace and a comment after after a jx:parameter, you'll get an exception:

<!-- OK -->
<jx:macro name="mymacro">
  <jx:parameter name="foo"/>
  <jx:parameter name="bar"/>
  do something

<!-- Exception -->
<jx:macro name="mymacro">
  <jx:parameter name="foo"/> <!-- some comment on foo -->
  <jx:parameter name="bar"/>
  do something

The exception stacktrace starts with:

org.xml.sax.SAXParseException: <parameter> not allowed here: "domain" 
	at org.apache.cocoon.generation.JXTemplateGenerator$StartDefine.finish(

	at org.apache.cocoon.generation.JXTemplateGenerator$Parser.endElement(

I am not sure if the problem described in
is related to this. If so the issue might have been fixed already.

BTW, whats the "standard procedure" for reporting bugs? Shall I post that to the dev-list?
Make an entry in bugzilla?


Jan Harms

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message