Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Using XSL substring to get the last field of a delimited string [Thread Next] Re: Using XSL substring to get the last field of a delimited stringTo: NULL Date: 4/4/2006 3:55:00 PM aidy wrote: > I have this text value within an XML element > > "\\gbahes75\Projects\AddressService\Datapool\GetTestID.sdd" > > I hold this within an XSL variable e.g. "$host1". > > However I am having trouble extracting the last field in this delimited > string (i.e. GetTestID.sdd). In general with XSLT/XPath 1.0 you will need to write a recursive template that parses that string. The string functions <http://www.w3.org/TR/xpath#section-String-Functions> in XPath 1.0 are not powerful enough to simply e.g. find the last index of '\' without writing a recursive XSLT template. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
