map: Support @index on all lvm:from

* src/current/compiler/map.xsl (lvmc:compile)[lvm:map//lvm:from[*]]: Output
    index if @index is set.
master
Mike Gerwitz 2018-04-11 14:31:52 -04:00
parent ba1faa74da
commit 4554013356
1 changed files with 5 additions and 0 deletions

View File

@ -737,6 +737,11 @@
<text>})(input['</text>
<value-of select="@name" />
<text>']</text>
<if test="@index">
<text>[</text>
<value-of select="@index" />
<text>]</text>
</if>
<if test="$nested">
<text>[curindex]</text>