Forum Moderators: open
I need to be able to select the last value between items "F3" and "F8" that has a value, in this case <item name="F5">3</item>.
How would I write that in an XSLT?
Thanks.
<xsl:apply-templates select="node()[substring-after(name(),'F') < 9 and substring-after(name(),'F') > 2 and .!= '']" />
<xsl:template match="node()[substring-after(name(),'F') < 9 and substring-after(name(),'F') > 2]">
<xsl:if test="position() = last()">
<xsl:value-of select="."/>
</xsl:if>
</xsl:template>