roxen.lists.roxen.general

Subject Author Date
Problem with value-of in contents tag Petter Larsson <petterl[at]lysator[dot]liu[dot]se> 08-10-2008
Hi

The code below is not working as I expected, there seem to be an issue
with copy-of in the contents tag, has this been resolved in later
versions of roxen?
I'm using: 4.5.241

<define container="tag">
   <set variable="_.tag2"><contents value-of="<tag2/[at]value>" result-set=''/></set>
   <emit source="values" variable="_.tag2">
   <emit source="values" variable="_.value">
      &_.index;:&_.value;<br/>
   </emit>
   </emit>
</define>

<tag>
   <tag2 value="2">2</tag2>
   <tag2 value="3">3</tag2>
</tag>

=== Result ===
value:2
value:2

=== Expected ===
value:2
value:3

BR
Petter Larsson