You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Per Steffensen <st...@brics.dk> on 2001/01/21 20:10:17 UTC

if-tags

Hi

I was wondering if there exists some processor og taglib or something with a if-tag, where you can write something like what is shown belov. It does not need to be exactly like belov - just a if-tag. xsl:if can not be used, cause the test attribute does not support Java-expressions - as far as I can find out.

<if>
  <test>

     some Java-expression

  </test>
  <true>

       the tags in this true sub-tag is inserted here in the XML-document if "some Java-expression" evaluates to true

       <tag>
       </tag>
  </true>
  <false>

       the tags in this false sub-tag is inserted here in the XML-document if "some Java-expression" evaluates to false

       <tag>
       </tag>
  </false>
</if>

Re: if-tags

Posted by Donald Ball <ba...@webslingerZ.com>.
On Sun, 21 Jan 2001, Per Steffensen wrote:

> I was wondering if there exists some processor og taglib or something
> with a if-tag, where you can write something like what is shown belov.
> It does not need to be exactly like belov - just a if-tag. xsl:if can
> not be used, cause the test attribute does not support
> Java-expressions - as far as I can find out.

you're describing xsp. read all about xsp on the cocoon web site.

- donald