Using XSLT contains()
XML / XSL
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I'm trying to work out how to do the following.. Within an XML data source, each has a element containing a comma-separated list of country-codes e.g. GBR,ARG,IRL Within the XSLT I've build a lookup like...
GBR
United Kingdon. I want to get a list of all the countries, in order, for which there are entries in one or more elements. I've tried using exsl:node-set to build a set of nodes from the CountryList, then for-each to iterate those nodes, but can't work out how, within the for-each, to get an if test to work (somehow using contains() to see if the code for that country is within any element). Anyone got any suggestions?