<xsl:variable name="columnIndex1">
<xsl:value-of select="position()+1"/>
</xsl:variable>
<xsl:variable name="var5" select="/mxRoot/columns/column[($columnIndex1)]/settings/setting[@name='Show Function']" />
javascript:link("<xsl:value-of select="@index"/>","<xsl:value-of select="$oid"/>","<xsl:value-of select="$relId"/>","<xsl:value-of select="$parentId"/>","<xsl:value-of select="$parentId"/>","<xsl:value-of select="$var5"/>")
</xsl:variable>
在这个var5中,总是只获得第一个索引,而不是获得动态索引
答案 0 :(得分:0)
尝试像这样设置变量:
<xsl:variable name="columnIndex1" select="position()+1"/>