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

-----Original Message-----
From: [] On Behalf Of Karen Gabrielyan
Sent: 03 February 2003 20:01
To: ''
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