You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Márcio Ferreira <mf...@telbit.pt> on 2004/05/25 14:13:13 UTC

XSP with xsl

Hi,
I need to test in xsp file if something happens in xml passed in 
pipeline, what i need is like this:
<?xml version="1.0"?>
<xsp:page  language="java"  xmlns:xsp="http://apache.org/xsp"
                                          
xmlns:action="http://apache.org/cocoon/action/1.0"
                                         
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                       
xmlns:xsp-request="http://apache.org/xsp/request/2.0">

  <page>
    <xsp:logic>
      if(<xsl:value-of select="execution/rowset/row"/>){
          <action:set-success/>
      }
      else
      {
        <action:set-failure/>
      }
    </xsp:logic>
  </page>
</xsp:page>
i need to test if execution/rowset/row exists in xml passed
it is possible.

Thanks



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