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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to