[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: using attribute value as an attribute name OR using elementvalue as an attribute name
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 23 Sep 2002 10:03:19 +0100
> > <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


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member