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

____________________________________________________

Georg Stengl
web2CAD AG
Emailfabrikstrasse 12
92224 Amberg
Germany
Tel. :    (+49) 9621/700-108
____________________________________________________

Reply via email to