Do you want to store the path to the response? If so you could have
Code:
//response_label[@ident = 'CE296EA2163111D8C6E4DBF3F4597FC1']
Two things, this is an inefficient path, as are most starting with //. If I knew the structure of the document more precisely then I could suggest a better one. Secondly you won't be able to use this string to access the element unless you are using a processor such as Saxon that has extensions for this; XPath does not allow for dynamic evaluation of strings as paths.
Instead you could just store the ident in the ref attribute and use the path
Code:
//response_label[@ident = current()/@ref]
assuming the context node at that point is the Question element.
--
Joe (
Microsoft MVP - XML)