How to get file name in sonarxml xpath query


We have a bpmn file which contains process id as below.
<bpmn:process id=“PROCESS_test” isClosed=“false” isExecutable=“true” >

I wanted to check whether this process id is following our naming convention.The rule is like after underscore it should be file name.I am using “Track breaches of an XPath rule” in sonarxml template for checking this.But I don’t know how to get file name in the Xpath query.Could someone help me on this?

You can’t do that with that template rule: the XPath queries don’t have access to the file name.