Concatenate attributes and element to create ID

Hi all,

I'm working with a file that does not contain any ID's for the strings which is causing many problems during updates.

I was wondering if I could concatenate the source text + the filename to create an ID (see below).

I have tried using "concat" while creating a parser but I keep on getting errors no matter the xpath method I use. 

Is there any way to do this?

Your help will be much appreciated

<name>CheckServices</name>
<message>
<location filename="../src/CheckServices.cpp" line="237"/>
<source>Error</source>
<translation>Erreur</translation>
</message>