Is it possible to translate or replace the output of an Xpath result? For example, I have the following Xpath query:

Code:
//CompetencyList/Competency/CompetencyAttributeList[not(CompetencyAttribute/Name='ASSET_TYPE_VALUE')]//parent::*/parent::*/Code
I am looking to covert the value of "Code" to some string of my choosing. I've tried doing this with the "translate()" function, but cannot figure out the proper syntax to accomplish it.

Can this even be accomplished?