Re: Re: xxforms:variable does not work
Posted by
inanda.menezes on
Apr 12, 2011; 7:09pm
URL: https://discuss.orbeon.com/xxforms-variable-does-not-work-tp3444333p3445448.html
Hi, but I have a different situation.
I have the following instances:
<xforms:instance id="resource"><resource>value-1</resource></xforms:instance>
<xforms:instance id="next-resources"><values><value-1><next>value-5</value-1></next></values></xforms:instance>
I want to get a value from the first instance and use this value inside my xpath expression:
<xxforms:variable name="variable1" select="instance(resource')"/> //Get the value 'value-1', it is working.
<xforms:output id="control-2" value="instance('next-resources')/$variable1/next"/> //It should print 'value-5'. But it does not work.
I also tried to print using the ref attribute:
<xforms:output id="control-2" reference="instance('next-resources')/$variable1/next"/> // It also does not work.
I found a post about it, but it did not work. I don't know if it's something with this version 3.9 or if it is my mistake.
http://orbeon-forms-ops-users.24843.n4.nabble.com/xxforms-variable-inside-xPath-declaration-td2399957.html