I have this XML node:
<app type="ponctuation">
<lem wit="A B C"> ΒΆ </lem>
<rdg wit="D E"/>
</app>
And I would like to display the value of the <lem>
element if one of the value of the wit attribute is A (or B or C). My XSL doesn't work:
<xsl:template match="tei:app">
<xsl:if test="@type = 'ponctuation'">
<xsl:if test="./tei:lem[@wit = 'A']">
<xsl:value-of select="./tei:lem[@wit = 'A']"/>
</xsl:if>
</xsl:if>
</xsl:template>
Or, to be more precise, it works if the value of the wit attribute is the searched one.
So I guess my question is: how do I say to the processor "do extract the value of the lem element if its own attribute value contains "A", among others or not"
I hope I made myself clear enough,
Thank you for your answers !