It looks as if somewhere along the line, your tree is being converted to a string.
 
Without seeing your code, it's impossible to say where this is happening.
 

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com

-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Karen Gabrielyan
Sent: 03 February 2003 20:01
To: 'saxon-help@lists.sourceforge.net'
Subject: [saxon] How to return tree branch from extension Java function?

I use the version 6.5.2 of SAXON.
 
The Java method, that I call from inside the XSL, newly constructed branch of tree is returned. But in resulting XML file, I dont see that branch at all, only text elements from bottom of that generated branch are glewed together and inserted instead of branch.
Am I doing something wrong? How is it possible to embed newly generated XML branch into resulting tree?
 
With regards,
Karen Gabrielyan