From John Walsh
From David Sewell
It looks like the W3C is providing some off-the-shelf XLST 2.0
stylesheets to do this precise job for SGML standard entities and
others. See http://www.w3.org/2003/entities/
(where the stylesheets are linked to “XSLT 2 draft character map”.)
Of course this won’t do much good unless you have an XLST processor that handles the draft 2.0 spec, like the latest version of Saxon.