You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Doms <ad...@inf.tu-dresden.de> on 2004/10/15 14:42:34 UTC
xsp: defining a recursive methode which produces xml elements in
I need to define a recursive methode which produces nested xml tags.
<xsp:logic>
private void produced(...){
<a>
produced(...);
</a>
}
</xsp:logic>
this gives the error "xspAttr cannot be resolved" because the xspAttr is not known the gerated methode.
Any concept to solve this problem elegant?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: xsp: defining a recursive methode which produces xml elements
in
Posted by Thomas Krause <th...@assa-systems.de>.
I wrote to the cocoon dev to change this procedure but they think it's
clear enough. The this xsp for example.
Thomas
Andreas Doms schrieb:
> I need to define a recursive methode which produces nested xml tags.
>
> <xsp:logic>
> private void produced(...){
> <a>
> produced(...);
> </a>
> }
> </xsp:logic>
>
> this gives the error "xspAttr cannot be resolved" because the xspAttr is
> not known the gerated methode.
>
> Any concept to solve this problem elegant?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
Re: xsp: defining a recursive methode which produces xml elements
in
Posted by Andreas Hartmann <an...@apache.org>.
Andreas Doms wrote:
> I need to define a recursive methode which produces nested xml tags.
>
> <xsp:logic>
> private void produced(...){
> <a>
> produced(...);
> </a>
> }
> </xsp:logic>
>
> this gives the error "xspAttr cannot be resolved" because the xspAttr is
> not known the gerated methode.
>
> Any concept to solve this problem elegant?
I just pass the xspAttr to the method.
It works, and I think it's clean enough :)
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org