[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: function substring
> I would like to know how I can use "substring-after" function or How can I > trim the value of the text. > example: <xsl:value-of select="."/> value is "18 564 5333" > I need last 4 numbers to show in output instead of whole value (18 564 5333). If the format is fixed, you could use <xsl:value-of select="substring(.,8)"/> otherwise this will get whatever is after the second space <xsl:value-of select="substring-after(substring-after(.,' '),' ')"/> Cheers! Larry XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|