Branch: Tag:

2008-10-09

2008-10-09 11:44:52 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug in <contents value-of=... result-set="">. This fix can have
compatibility aspects in some cases, but in general the old behavior is too
broken and random to be bug compatible with. Thanks to Petter Larsson for
pointing it out.

Rev: server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1.84
Rev: server/modules/tags/rxmltags.pike:1.559

861:   <test>    <rxml type="string">    <define container="x"> +  <contents value-of="elem/@attr" result-set=""/> +  </define> +  <set variable="var.a"> +  <x><elem attr="1" foo=""/><elem attr="2" bar=""/></x> +  </set> +  &var.a.1;|&var.a.2; +  </rxml> +  <result>1|2</result> + </test> +  + <test> +  <rxml type="string"> +  <define container="x"> +  <contents value-of="elem/@*" result-set=""/> +  </define> +  <set variable="var.a"> +  <x><elem attr="1" foo="f"/><elem attr="2" bar="b"/></x> +  </set> +  <emit source="values" variable="var.a" sort="value"> +  &_.value;| +  </emit> +  </rxml> +  <result>1|2|b|f|</result> + </test> +  + <test> +  <rxml type="string"> +  <define container="x">    <set variable="_.data"><contents copy-of="item[@ok]" result-set=""/></set>    <emit source="values" variable="_.data" sort="value">&_.value:none;</emit>    </define>