|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Case-insensitive filter match for template wanted
> 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
Well you could write
> match="section[ parameter/@name='Rule' ][ parameter/value/upper-case(@entry)
= 'INPUT' ]"
But the "correct" way to do case-insensitive matching is to use a collation:
> match="section[ parameter/@name='Rule' ][ parameter/value@entry = 'INPUT'
]"
> default-collation="http://www.w3.org/2013/collation/UCA?strength=2"
It depends a bit about whether you care what happens to characters like
"dotless i" (which probably aren't going to appear in your input unless you
are Turkish).
Michael Kay
Saxonica
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








