cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Engelhart <mengelh...@earthtrip.com>
Subject Re: recursive func in XSP?
Date Mon, 05 Jun 2000 15:32:21 GMT
on 6/5/00 4:24 AM, Neeme Praks at neeme@one.lv wrote:

> <xsp:logic>
> FolderTree tree =
> FolderUtility.getTreeByUser(UserID, UserID);
> Node node = BuildTree( document, tree, 0, 0);
> 
> xspCurrentNode.appendChild(document.importNode(node, true));
> </xsp:logic>
Since you're using the implicit document that XSP supplies, you don't have
to import the node, just use:
xspCurrentNode.appendChild(node);

The only time you need to use importNode is if the parent Document object
that creates the Node is different then the one you're appending to.

Mike


Mime
View raw message