cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Gianni <a.gia...@infogroup.it>
Subject Loop with cascade xslt
Date Thu, 17 May 2001 10:31:49 GMT

I tryed to replicate the clean-page.xml example of cocoon for put java code 
in a dynamic xml page.
My first xml file is

<?xml version="1.0"?>

<!-- Author:  -->
<!-- Version: $Id: page.xml,v 1.5 2000/01/08 07:19:41 ricardo Exp $ -->

<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="crea-1.xsl" type="text/xsl"?>

<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
         xmlns:util="http://www.apache.org/1999/XSP/Util">
<page>
         <util:include-uri>
         <util:href>
                 <xsp:expr>
                          "http://linuxdev04:6666/servlet/com.infogroup.tweb.xml.servlet....
                 </xsp:expr>
         </util:href>
         </util:include-uri>
</page>
</xsp:page>

and the xslt is just a try file

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:xsp="http://www.apache.org/1999/XSP/Core">

<xsl:template match="page">

     <xsl:processing-instruction 
name="cocoon-process">type="xsp"</xsl:processing-instruction>

     <xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">

      <pippo>pluto</pippo>
     </xsp:page>

</xsl:template>



</xsl:stylesheet>



The problem is that Cocoon enter in a loop executeing continuosly the url 
request.

Anyone has had my same problem and solved it ?

A.G.

*******************************
Ing. Andrea Gianni
Software Engineer
Gruppo Monetica e Servizi
Area Internet Professional
Infogroup S.p.a.
Via delle Panche, 140
50141 Firenze
Tel. 055.436.5647
Fax. 055.436.5735
e-mail a.gianni@infogroup.it


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message