cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robf <...@robf.nl>
Subject Re: howto call xsp from xsp
Date Sat, 14 Jul 2007 11:19:49 GMT
Grzegorz Kossakowski wrote:
> robf pisze:
>> Hi ,
>
> Hi
>
>> At some point in an xsp I want to include the
>> resultset from calling another xsp , just like it
>> is possible in xslt's:
>> <xsl:copy-of select="document('cocoon://someurl)/tagx"/>
>>
>>
>> <?xml version="1.0"?>
>> <xsp:page xmlns:xsp="http://apache.org/xsp">
>>
>>  <xsp:logic>
>>    ...
>>  </xsp:logic>
>>
>>  ...
>>  <sometag>
>>  <!-- Is there some construct LIKE this ???? -->
>>     <xsp:copy select=document('cocoon://someurl)/tagx"/>
>>  </sometag>
>>  
>>
>> </xsp:page>
>
> What about using XInclude transformer: 
> http://cocoon.apache.org/2.1/userdocs/xinclude-transformer.html ?
>
The problem with a transformer is that it is "executed" after current xsp.
In an xsp I want the following:

<xsp:page xmlns:xsp="http://apache.org/xsp">
...
  <esql:execute-query>
    <esql:query>
       select * from table where ....
    </esql:query>
    <esql:results>
       <esql:row-results>
          <!-- here I want to "call" another xsp
             and include the resultset here
             Some construct like this
          -->
          <xsp:copy select=document('cocoon://someurl?<esql:get-string 
column="XYZ"/>/tagx"/>

    </esql:results>



Rob



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


Mime
View raw message