Hello Georg,

you seem to mix XSP and XSL. They are different techniques: With XSP Sax
events are *generate*d, XSL is used for *transform*ation. To get the
reason of your problem you should show us your sitemap, remove the XSL
stuff into an XSL and don't mix the document (generated by XSP) and the
XSL stylesheet.

Joerg

PS: In general such questions should be asked on Cocoon users list, you
won't have to wait so long for an answer there, while Cocoon developers
incline to ignore such mails.

[EMAIL PROTECTED] wrote:



Hi,


I use Cocoon 2.0.4.
I want to build a tree structure with nested tree elements, but I don't
know how much elements I get from a stack,  I've destinated before.
If a recursive call of the called template is made in the logicsheet (
      <xsl:template name="nextBelow">


<xsp:element name="SELECT"> <xsp:attribute name="name"> <xsp:expr>eftix.myChildName()</xsp:expr> </xsp:attribute> <xsp:attribute name="file"> <xsp:expr>eftix.myChildFileAttr()</xsp:expr> </xsp:attribute> <xsp:attribute name="navfile"> <xsp:expr>eftix.myChildNavFileAttr()</xsp:expr> </xsp:attribute>

                        <xsp:attribute name="category">
                              <xsp:expr>eftix.amILast()</xsp:expr>
                        </xsp:attribute>

                  <xsl:variable name="test" >
                  <xsp:logic>
                        <xsp:expr>eftix.amILast()</xsp:expr>
                  </xsp:logic>
                  </xsl:variable>

                  <Geo>
                      <xsl:value-of select="$test" />
                  </Geo>

            if(eftix.getNextFromStack())
            {
                  <xsl:call-template name="nextBelow" />
            }
            <!--  -->
            </xsp:element>



      </xsl:template>
),
the transformation of the xsp-file to a java-file fails and the server is
stopped.


It seems there is produced an endless loop by this transformation. It is necessary for me that the elements are nested. Is there any other possibility to produce a nested tree with unlimited elements with XSP and logicsheets?

I hope anybody can help me!

wbr
Georg





Reply via email to