H
henribastien
I'm trying to return an array from a xalan extension but so far I have
made no progress. What I would like to return is something like that
<entry id="red">201</entry>
<entry id="green>55</entry>
<entry id="blue">123</entry>
so I could acces them with something like $returned[@id='red'].
Problem is, I haven't figured out how to do that. I haven't found any
exemple of a xalan extension function returning a nodeset so I fear it
is not possible but I would have preferred to use only one function
instead of three (or three call for that matter, i.e ext:get("blue") or
ext:getBlue() )
Is it possible and if so could you provide an exemple. If there are
other alternatives I'm open to any suggestion.
made no progress. What I would like to return is something like that
<entry id="red">201</entry>
<entry id="green>55</entry>
<entry id="blue">123</entry>
so I could acces them with something like $returned[@id='red'].
Problem is, I haven't figured out how to do that. I haven't found any
exemple of a xalan extension function returning a nodeset so I fear it
is not possible but I would have preferred to use only one function
instead of three (or three call for that matter, i.e ext:get("blue") or
ext:getBlue() )
Is it possible and if so could you provide an exemple. If there are
other alternatives I'm open to any suggestion.