How to ignore cases on attribute value
Hi. I'm using XSLT 1.0.
I have the following 3 possible inputs:
<Ball Color='yellow'>big</Ball>
<Ball Color='Yellow'>Small</Ball>
<Ball Color='YELLOW'>MEDIUM</Ball>
How do I get the value based on the Color "yellow" attribute by ignoring the "yellow" cases (lower, mix, upper)?
This is what I have so far:
<xsl:template match="Ball">
<xsl:value-of select='normalize-space(@Color='yellow')'/>
</xsl:template>
My current output is only "big",
when it should be "big", "Small", and "MEDIUM".
I tried using this but didn't work:
normalize-space(@Color=translate('yellow', 'abcd...z', 'ABCD...Z'))
|