[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Substring a Value

Subject: Substring a Value
From: "Trevor Majic" <majic87@xxxxxxxxxxx>
Date: Mon, 09 Aug 2004 09:53:49 -0500
xsl substring
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">


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*.


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.