How can I get a value from an xml key/value pair with xpath in my xslt?
- by TahoeWolverine
I have some xml that I want to process using xslt. A good amount of the data comes through in key value pairs (see below). I am struggling with how to extract the value base on the key into a variable. I would like to be able to do something like this:
<xsl:variable name="foo" select="/root/entry[key = 'foo']/value"/>
but that doesn't…