On 11/20/06, Nima Kaviani <nkaviani(_at_)sfu(_dot_)ca> wrote:
hi list,
I solved my current problem through using 2XSLT files, calling one
after another, and that sorta helped.
but now I have a new question. is there any way to return more than
one value from a function (i.e. template) beside using global
variables?
The output of a template may be an xml document (tree) itself
representing many "values" or "lists of values". In XSLT 2.0 the
output of a template may be any sequence.
The output of a template may be captured as the contents of a variable
(not necessarily global) or produced directly to the output. In case
of XSLT 1.0 the contents of such variable is of type RTF (result Tree
Fragment) and needs to be converted to a regular tree by an
xxx:node-set() extension function -- if more complex XPath operation
than simply accessing it as a string should be possible.
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--