cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@infoplanning.com>
Subject [C2] Bug in xsp:element
Date Thu, 21 Dec 2000 20:31:31 GMT
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


Mime
View raw message