Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 10259 invoked from network); 4 Jun 2000 22:25:09 -0000 Received: from balld-0.dsl.speakeasy.net (HELO localhost.localdomain) (@216.254.77.75) by locus.apache.org with SMTP; 4 Jun 2000 22:25:09 -0000 Received: from localhost (balld@localhost) by localhost.localdomain (8.9.3/8.9.3) with ESMTP id SAA26921 for ; Sun, 4 Jun 2000 18:25:01 -0400 X-Authentication-Warning: localhost.localdomain: balld owned process doing -bs Date: Sun, 4 Jun 2000 18:25:01 -0400 (EDT) From: Donald Ball X-Sender: balld@localhost.localdomain To: "Cocoon-dev (E-mail)" Subject: Re: recursive func in XSP? In-Reply-To: <2ECFE9456D0F6A4FA77B38C25AAE2309027DE7@the.one.lv> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Sun, 4 Jun 2000, Neeme Praks wrote: > > Is it possible to write recursive functions in XSP that would return > XML? > > I have a tree-like object structure in Java and I want to convert it to > tree structure in XML. > I have an implementation of this in ECS, now I'm porting my stuff over > to XSP and want to output XML instead of ECS elements. > The function is in the beginning of my XSP page. > > Otherwise everything is pretty straight-forward, but what type should my > function return so the resulting XML fragment would be included in the > main XML doc? org.w3c.dom.Node should work fine. - donald