Hi,
I have a filling that there is some bug with xsp:attribute. It seems, that attributes are always created, no matter if there is some logic that should prohibit to create the attribute.


For instance:
   <layout:data-source>
      <xsp:logic>
        if (false) {
      </xsp:logic>
          <xsp:attribute name="should-not-be">true</xsp:attribute>
      <xsp:logic>
        }
      </xsp:logic>
   </layout:data-source>

is transformed to:

    xspAttr.addAttribute(
      "",
      "should-not-be",
      "should-not-be",
      "CDATA",
      "true"
    );

    this.contentHandler.startElement(
      "http://www.eti.pg.gda.pl/layout";,
      "data-source",
      "layout:data-source",
      xspAttr
    );

if (false) {

}

Well, this is far from what I expected :-(
I'm working with Cocoon 2.1.4-dev (version from something like 1-2 months ago).


Regards,
Marcin Okraszewski


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



Reply via email to