Is there a way to find a node matched on part of a value.
If I have the following:
<competition id='100' name='Barclays Premier League'/> <competition id='101' name='CocaCola Championship' /> <competition id='102' name='CocaCola League 1' />
Given the string ‘Premier League’ or even ‘Prem’, how would I match the correct node and get id 100.
I have managed this using for-each and contains, but this is very inefficient and does not work fast enough for our requirements.
String handling is not something XSLT is amazing at but there are a few options.
In this case you might try:
see here for more options and details