Subject: RE: more than one return value for output
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 21 Nov 2006 07:28:32 -0000
|
> but now I have a new question. is there any way to return
> more than one value from a function (i.e. template)
In 1.0, return a result tree fragment containing the various values.
In 2.0 you can return a sequence.
But I'd say it's usually not a good idea. Use two separate functions.
> beside using global variables?
Global variables, being immutable, don't help.
Michael Kay
http://www.saxonica.com/
|