xsl-list
[Top] [All Lists]

Re: using attribute value as an attribute name OR using element value as an attribute name

2002-09-23 02:03:19

<xsl:value-of select="$row/@*[name()=.]">

Yes, this seems to be wrong. It's true for every attribute, whose value 
is the same as its name,

Of course he picked up that code from a very unreliable source...

use current() not .  so you pick up the current (attribute) node from
the outer for-each.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list