Subject: Re: [xsl] more than one return value for output From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Mon, 20 Nov 2006 21:11:59 -0800 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] more than one return value fo, Nima Kaviani | Thread | RE: [xsl] more than one return valu, Michael Kay |
[xsl] more than one return value fo, Nima Kaviani | Date | RE: [xsl] sort by xsl:if and then s, Michael Kay |
Month |