cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Man <Martin....@seznam.cz>
Subject [c2] esql.xsl <esql:row-results> versus <xsp:logic> problem
Date Wed, 02 May 2001 17:12:46 GMT
Hi all,

the following esql fragment produces something strange
------------------------------------------------------

<esql:row-results>
  <column>
    <xsp:attribute name="xxx"></xsp:attribute>

    <xsp:logic>
      if ("blabla".equals (<esql:get-string column="blablabla"/>) {
        <xsp:attribute name="yyy"></xsp:attribute>
      }
    </xsp:logic>

  </column>
</esql:row-results>

the code
--------

while (resultSet.next ()) {

  contentHandler.addAttribute ("xxx");
  contentHandler.startElement ("column");

  if ("blabla".equals (......) {
    contentHandler.addAttribute ("yyy"); // This attribute goes to next row
  }

  contentHandler.endElement ("column");

}

the addAtribute inside of <xsp:logic> goes out after startElement, and
therefore is not created in proper <column> element (if I understand it
correctly), is this a bug ????


thanx,
martin

P.S. source code simplified :))

-- 
-------------------------------------------------------------------------------
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message