Re: [xsl] Case-insensitive filter match for template wanted

Subject: Re: [xsl] Case-insensitive filter match for template wanted
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Mar 2017 09:39:26 -0000
On 28.03.2017 11:35, Kerry, Richard richard.kerry@xxxxxxxx wrote:

So I tried:

<x:template match="section[ parameter/@name='Rule' ][ upper-case(
parameter/value/@entry ) = 'INPUT' ]" mode="processes" >



But that gives me (using Saxon HE9.7.0.5):

bA sequence of more than one item is not allowed as the first argument
of upper-case() ("INPUT", .....b



Ok, I can see that is telling me I'm expecting too much from the system
and it can't do the template match with the upper-case function applying
to all the possible parameter/value/@entry values.


Use

<x:template match="section[ parameter/@name='Rule' ][parameter/value[upper-case(@entry) = 'INPUT' ]]" mode="processes" >

Current Thread