Two ideas:
1. Pre-process the svg files: use sed or python or wtvr and replace a marker string with the file name, such that it will appear as a text thingy when svg is viewed.
2. Similar to 1, but use python in inkscape (extension) to manage this variable replacement dynamically.
/d