I have a set of “file” nodes with a type attribute
<files>
<file type="main">asdf</file>
<file type="main_en">asdf</file>
<file type="main_fr">asdf</file>
<file type="pdf">asdf</file>
</files>
How do I check on the set of files if one of the nodes has at least 1 attribute that starts with “main”.
I was thinking something like:
<xsl:when test="contains(string(files/file[@type]),'main')">
But all the functions or tests I know seem to only be for a specific node and not a set of nodes.
I would rather avoid using a for each type solution.
Or, even better: