Return associative array using xalan-c extensions

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.
 
H

henribastien

Yes, I have looked at theses function. My problem is that they never
really create a node-set nor alter any node they mainly return some of
the node that were submited as argument. What I would like to do is
create from scratch a node or if its really not possible submit a nod
set and "fill" the information in them. If you can give me an exemple
using xalan-j maybe I can figure out how to do something similar in
xalan-c.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top