In stylesheets/main.xsl it is used twice.
Instead of : ametys:resourcesByPath('charte/picto/profils')/resource[@name = 'picto-1.png']/@id use : ametys:resourceByPath('charte/picto/profils/picto-1.png')/@id