I am stuck on a line of code, which creates a link based on a value the xsl
retrieves from the xml file (@from). I need to be able to substring the
@from value (ie. ID(ODP_12345) to ODP_12345) for the link to point to the
correct file.
The line to be modified:
<xsl:attribute name="href"><xsl:value-of select="@from"/></xsl:attribute>
where, <xsl:value-of select="@from"/> (the value returned) needs to be
substringed(2, len(@from)-1).
I have tried several JavaScripts, but I can't seem to get anything to work.
The anchor syntax is:
<a>
<xsl:attribute name="href"><xsl:value-of select="@from"/></xsl:attribute>
<i>
<xsl:apply-templates/>
</i>
</a>
Version:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
Thanks,
Trevor
_________________________________________________________________
Designer Mail isn't just fun to send, it's fun to receive. Use special
stationery, fonts and colors.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.