I have an attribute: <names>Dan,John,Matin,Lewis</names>
Can you create a filter [names='Dan']
and get the XSLT to filter based on the list of values in <names>
??
I have an attribute: <names>Dan,John,Matin,Lewis</names>
Can you create a filter [names='Dan']
and get the XSLT to filter based on the list of values in <names>
??
Could you post your XML data? Basically you would need to do something like:
<xsl:template match="names[contains(.,'Dan')]">
// do something
</xsl:template>
To avoid also matching nodes that contain "Danny":
<xsl:apply-templates select="names[
contains( concat(',' text(), ','), ',Dan,' )
]" />