Re: xxforms:variable does not work
Posted by inanda.menezes on Apr 12, 2011; 2:03pm
URL: https://discuss.orbeon.com/xxforms-variable-does-not-work-tp3444333p3444706.html
I have checked it and I could print the value using the select attribute:
<xforms:instance id="resource"><resource>value-1</resource></xforms:instance>
<xxforms:variable name="variable1" select="instance(resource')"/>
<xforms:output id="control-1" value="$variable1"/>
But I should be able to use this variable inside the XPath, and it is not working. I am testing using the following code:
<xforms:instance id="next-resources"><values><value-1><next>value-5</value-1></next></values></xforms:instance>
<xforms:output id="control-2" value="instance('next-resources')/$variable1/next"/>