|
Hi,
I have the following question:
I have form:
<form> <section-1> <control-1/> <grid-3> <tekst1/> </grid-3> <grid-3> <tekst1/> </grid-3> <grid-3> <tekst1/> </grid-3> </section-1> </form>
and instance:
<instance id="myInstance"> <vars> <var>A</var> <var>B</var> <var>C</var> </vars> </instance>
and I want to fill form with data from instance:
<form> <section-1> <control-1/> <grid-3> <tekst1>A</tekst1> </grid-3> <grid-3> <tekst1>B</tekst1> </grid-3> <grid-3> <tekst1>C</tekst1> </grid-3> </section-1> </form>
How can I reach this? Is it possible to use setvalue:
<xf:var as="xs:string" name="control-value" select="instance('myInstance')/vars/var"/>
<xf:setvalue ref="form/section-1/grid-3/tekst1" value="$control-value"/>
?
|