tags:

views:

128

answers:

1

This is something that work:

$curRow[1]/@gridClose

but let say that I do not know the attribute name "gridclose". I will loop and get this attribute with the code.

With the debugger I can get the value "gridClose" with : $curCol/@id. So I am trying to get something like :

$curRow[1]/@{$curCol/@id}

But it doesn't work. Any idea how I can do that?

+4  A: 

Maybe something like this:

$curRow[1]/@*[ name() = $curCol/@id ]
David
This is the one I have choosen. Thank you, worked like I wanted +1
Daok