cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bartlomiej Pater" <>
Subject Re: Using output from XSP in XSL condition instructions
Date Wed, 01 Nov 2000 16:51:55 GMT
On Wed, 01 Nov 2000 12:22:25 GMT Robin Green >It's very simple.
>It all depends on the order you specify your processing instructions in. So 
>any XSL which needs to process the results of XSP, must go in a 
>logic/stylesheet that is applied AFTER XSP.
Thanks for your reply, but the problem is more complicated... I forgot to mention that I'd
like to use output of XSP function in the same logicsheet. Is it possible at all?

For better understanding of the situation, here is template of the logicsheet I am using:

<xsl:template match="xsp:page">
      <xsl:apply-templates select="@*"/>
       //some includes here
       String some_nice_function() {
         return "aaaa";

<xsl:template match="cooltag">

<xsl:template match="anothercooltag">
     <xsl:when test="@importantparameter">
        //do something
     <xsl:when test=[value of the 'some_nice_function' == "string"]>
        //do sth else
        //do sth completly different

>Alternatively you could use a Java if statement instead of xsl:choose, for 
Everytime I try to output something in the body of <xsp:logic> tag i got a lot of errors
in type of "xsp node not found" or similiar. I guess I must be doing something wrong, but
I don't know what ;)

Get your FREE Budweiser E-mail account at
Budweiser E-Mail must be used responsibly and only is for consumers 21 years of age and older!

Disclaimer: Neither Anheuser-Busch, Inc. (the makers of BUDWEISER beer) nor the operator of
this E-Mail service or their respective affiliates have seen, endorsed or approved any of
the content in this e-mail and expressly disclaim all liability for the content in whole and
in part.

View raw message