I am trying to select a series of attributes and apply a function to them:
For example
//row/@role
I want to apply the substring function to the role attribute. If I add it to the entire xpath then I only get one result
substring(//row/@role, '3')
If I apply the function to the attribute only I get an error:
//row/[substring(@role, '3')]
Any ideas???
For example
//row/@role
I want to apply the substring function to the role attribute. If I add it to the entire xpath then I only get one result
substring(//row/@role, '3')
If I apply the function to the attribute only I get an error:
//row/[substring(@role, '3')]
Any ideas???