SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
xsl:variable name="myVarA" select="//DataSet/Data[@Value1='2']/@Value2" />
The '//' will search for DataSet at any depth