You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Berin Loritsch <bl...@infoplanning.com> on 2000/12/21 21:31:31 UTC

[C2] Bug in xsp:element

There is a bug in processing the xsp:element tag when
you specify attributes with xsp:param.

For example, the following line:

<xsp:element>
  <xsp:param name="name">hr</xsp:param>
</xsp:element>

Yields the following code:

this.contentHandler.startElement("",
                                 this.characters("hr");,
                                 this.characters("hr");, xspAttr);

Notice the embedded semicolons?

You can get around the error by changing the line to this:

<xsp:element>
  <xsp:param name="name"><xsp:expr>"hr"</xsp:expr></xsp:param>
</xsp:element>

However, this is not immediately apparent.  The XSL in the
xsp.xsl file is fairly complex on this note, and I need help
fixing this problem.

---------------------------------------
If you lust for Ham and Eggs, you have
committed breakfast in your heart
already.   -- C. S. Lewis