If your processor supports the EXSLT `str:tokenize()` extension function, you could use that with a `[last()]` predicate.
– michael.hor257kNov 24 '21 at 13:10
I know you are using XSLT 1.0 - you have tagged your question so. But some XSLT 1.0 processors support *extension* functions (read: extending the functionality of XSLT 1.0). Which processor are you using?
– michael.hor257kNov 24 '21 at 14:02