This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: using attribute value as an attribute name OR using elementvalue as an attribute name
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 23 Sep 2002 10:03:19 +0100
- Subject: Re: [xsl] using attribute value as an attribute name OR using elementvalue as an attribute name
- References: <10FBF97F828FD511B76300508B44B8470200484E@WCHQEX01> <3D8D0536.5020302@gmx.de>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> > <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