I am trying to use xslt to transform xml so that the output can be a username. I want to put the letters "gg_" and then the first letter of the first name and then the entire last name. I want the entire string to be in lowercase. I have successfully been able to concatenate, and use substring, but when I add in the lowercase my code doesn't work.
I've tried many different combinations, and iv been searching for a solution but I haven't been able to figure it out. This question seemed similar to this but I still could not get it to work.
XSLT: Working with just concat and substring
<GGUSERNAME><xsl:value-of select="concat('gg_',substring(ww:User/ww:Personal_Data/ww:First_Name,1,1),ww:User/ww:Person_Data/ws:Last_Name)"/></GGUSERNAME>
XSLT I've tried but cant get to work:
<GGUSERNAME><xsl:value-of select="concat('gg_',substring(lower-case(ww:User/ww:Personal_Data/ww:First_Name),1,1),ww:User/ww:Personal_Data/ww:Last_Name)"/></GGUSERNAME>
<GGUSERNAME><xsl:value-of select="lower-case(concat('gg_',substring(ww:User/ww:Personal_Data/ww:First_Name,1,1),ww:User/ww:Personal_Data/ww:Last_Name))"/></GGUSERNAME>
Thanks!