cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject xsp attribute bug?
Date Sat, 23 Dec 2000 16:03:16 GMT
    <test>
      <xsp:attribute name="color">blue</xsp:attribute>
    </test>

The above lines result into...

    this.contentHandler.startElement("", "test", "test", xspAttr);
    xspAttr.clear();
    this.characters("\n     ");
    xspAttr.addAttribute("", "color", "color", "CDATA", "");
    this.characters("\n   ");
    this.contentHandler.endElement("", "test", "test");

But shouldn't it be:

    xspAttr.addAttribute("", "color", "color", "CDATA", "blue");
    this.contentHandler.startElement("", "test", "test", xspAttr);
    xspAttr.clear();
    this.characters("\n     ");
    this.characters("\n   ");
    this.contentHandler.endElement("", "test", "test");

--
Torsten

Mime
View raw message