Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-04-11 14:31:52 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-04-16 11:11:21 -0400
commit45540133566fc2cf94043503502eb33a5a9780e1 (patch)
treea4b0fa137487d5ae1c315cf221dc721a394d5c9b /src
parentba1faa74da3cf376d09ff56e88def93a93741ff5 (diff)
downloadtame-45540133566fc2cf94043503502eb33a5a9780e1.tar.gz
tame-45540133566fc2cf94043503502eb33a5a9780e1.tar.bz2
tame-45540133566fc2cf94043503502eb33a5a9780e1.zip
map: Support @index on all lvm:from
* src/current/compiler/map.xsl (lvmc:compile)[lvm:map//lvm:from[*]]: Output index if @index is set.
Diffstat (limited to 'src')
-rw-r--r--src/current/compiler/map.xsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/current/compiler/map.xsl b/src/current/compiler/map.xsl
index 8ff1abf..8a318ab 100644
--- a/src/current/compiler/map.xsl
+++ b/src/current/compiler/map.xsl
@@ -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>