[I've looked at similar questions but none I found answer this, please do not mark a duplicate without actually reading it]
How would I select a node using the contents of savetype in xslt.
eg in this example savetype=dexterity so I want the value of
<xsl:value-of select="/root/character/abilities/dexterity/bonus"/>
Is there anyway to do this without a <xsl:choose> statement, can I build the XPATH statement from the value of savetype
Sample file
<?xml version="1.0" encoding="iso-8859-1"?>
<root version="3.1" release="7|CoreRPG:3">
<character>
<abilities>
<charisma>
<bonus type="number">-1</bonus>
</charisma>
<constitution>
<bonus type="number">2</bonus>
</constitution>
<dexterity>
<bonus type="number">2</bonus>
</dexterity>
</abilities>
<powers>
<id-00005>
<actions>
<id-00001>
<savetype type="string">dexterity</savetype>
</id-00001>
</actions>
</id-00005>
</powers>
</character>
</root>