Forum Moderators: open
Here is my code:
<xsl:template match="BDP">
<xsl:value-of select="../SECURITY"/>
<br/>
<!--<p class="BDP">-->
<xsl:variable name="num">
<xsl:number count="*" level="any"/>
</xsl:variable>
<xsl:variable name="myid" select="concat('bdp',$num)"/>
<span style="cursor:pointer;">
<xsl:attribute name="onmouseover">
<xsl:value-of select='concat($myid,".style.color='black'")'/>
</xsl:attribute>
<xsl:attribute name="onmouseout">
<xsl:value-of select='concat($myid,".style.color='white'")'/>
</xsl:attribute>
<img src="#!-- #IMAGES:mvicon.gif --#" style="margin-left:0%;margin-right:1%;position:relative;bottom:-0.6%;"/>
</span>
<span class="bdp">
<xsl:attribute name="id">
<xsl:value-of select="$myid"/>
</xsl:attribute> <xsl:apply-templates/>
</span>
<!--</p>-->
</xsl:template>
when I use this, the value of SECURITY stays only on the first instance in my XML file,
so e.g display looks like
SECURITY 0.5
BDP 100.00
SECURITY 0.5
BDP 200.00
SECURITY 0.5
BDP 300.00
instead of
SECURITY 0.5
BDP 100.00
SECURITY 0.4
BDP 200.00
SECURITY 0.75
BDP 300.00
can someone please show me the code how to change
<xsl:value-of select="../SECURITY"/> so that it doesn't only show first instance?
If you need more info please say
thank you for your helps