> -----Original Message----- > From: Donald Ball [mailto:balld@webslingerZ.com] > Sent: Monday, June 05, 2000 9:59 PM > > Put the logic into a library and make it recursive like normal: > > Node getRecursiveInfo(int arg) { > // foo > Node node = getRecursiveInfo(arg--); > // bar > } this is what I did, but I don't like it because I have to rewrite it when I switch to Cocoon2... But as I understand there is no way around this, so I'll do it this way. But this brings me back to the issue of the following exception that I brought up before: org.apache.xalan.xslt.XSLProcessorException: Warning: can't output text before document element! Ignoring... As much as I can tell, the error occurs when I try transform the XML generated from XSP to HTML with XSLT. And if I remove the text content from the root element, everything works just fine. For details, refer back to one of my previous (the longest) posts in this thread. I hope someone can help me out with this one... Neeme