On 10/01/2011 05:09, Shashikant-Sadashiv Jadhav wrote:

Hi There,
Is there any option available to resolve issue of cannot write more than one result.
I have some old xslt using (XALAN) and want to migrate it to SAXON without any change in XSLT code.
using xalan we are using <redirect:write>

You'll have to change your code somehow so it writes each output to a different URI.

If I remember correctly, Xalan's extension allows you to append XML to a given output destination. The result therefore depends on the order of execution, which is why XSLT 2.0 doesn't allow this. You could perhaps simulate the effect by writing a Saxon extension. Alternatively, if there is only one such output, you might be able to achieve the required effect using xsl:message.

Michael Kay