Twig is indeed time-tested, but I don't see a good reason to use Twig unless you are already using Perl. I was kinda hoping this would give reasons to use Twig over proven XML libraries from other languages, but I suppose it makes sense given this article was published to a Perl specific website.
Nice write-up, though!
For what it's worth I have used XSLT too, and the basic programming patterns are surprisingly similar: an XPath selector triggers some code, the code has access to the XML tree. In both cases you have to pay some attention to when that code is being triggered. I prefer the XML::Twig way, to being able to use a regular programming language in the code, partly because I am used to it, but also because the XSLT XML syntax ends up being quite verbose, and leads to delimiter collisions.
XML::Twig also lets you work with "too big to fit in memory" XML, by working at sub-tree level in a nicer (IMHO) way than SAX. I am sure there are other ways these days, but the module dates back to last century, so at the time that was pretty unique.
I assume that other languages also have convenient XML libraries, so if you're more familiar with them and they work for you, then you should use them!
But it would be possible with the underlying library of Xidel, internettools [1]. Fun fact: it is implemented in Free Pascal, a language for which I have great respect and which is unfortunately underrated in 2024 compared to the newer kids on the block (Rust, Go, Zig, ...).