XSL: use contains to filter variable further
Posted on 2013-11-07
i have the following variable within a function which finds 2 matching records
<xsl:variable name="test" select="
//Itin/ServInfo/Serv[@Code='ED' and @Type= 'RED'][Name/@Number =$Id]/Text"/>
I want to filter even further by matching against a value within Text.
So my function would receive this param as $DocNum
<Text>AS KK1 06L18MAR/CHAIR/ACCPT/USD2000/100RC CCVIXXXXXXXXXXXX0001EXPXXXX 8312312270746</Text>
The $DocNum I would be filtering against is the last number included in this string. (8312312270746)
so that then variable "test" would return that entire text bc it found matching DocNum as well.