BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


XSLT
Limitation to Muenchian method.
Find the number of tokens or words in a string
Randomization of node-sets or node-lists
XPath Analyzer
Finding the Maximum Date
World Cup 2002 fever hits XSLT!!
Using XSLT for DHTML Menus
RSS / RDF Newsfeed Reader
Hierarchical menu from Database + XSL to Html
XSLT syntax hightlighter
XSLT Stylesheet for listing namespaces used in a document
Rotate an SVG shape over it's center
Looping through each letter of the alphabet
An XSL Calculator using the FXSL Functional Programming Library
A Calendar, using the XSelerator's datetime library
Match a phrase to the closest sorted list value with 1 XPath Expression
SVG toolbar
Sort an XML document
Transposing rows into columns using XML/XSLT
XSLT ISAPI Filter for IIS


 
 

<< XQuery.NET and XML >>


By Lee Humphries
First Posted 04/30/2002
Times viewed 247

Get the last item from a delimited list


Summary XPath's string functions unfortunately have no ready way of getting the last item from a list of tokens. This snippet lets you do just that.

This snippet is a simplification of that in Extracting an item from a delimited list. It simply recurses through a string until it has past the last delimiter. If there was no delimiter you get the source string back immediately. One nice feature of this approach is that it allows for multi-character delimiters.

Additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XQuery.NET and XML >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML