|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Substring a Value
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: o;?<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
_________________________________________________________________ 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*.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








