与:
match="li/a[contains(@href, 'older')]"
您正在选择
a
尝试将其更改为:
match="li[contains(a/@href, 'older')]"
(未经测试,老实说,我什至没有查看完整的 XSLT。)