Is it possible to make unique id (here as an attribute \"path\"\'s value) by implementing incremental principle?
I think you can use xsl:number:
xsl:number
https://xsltfiddle.liberty-development.net/pNmC4HV