This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Knowing node name in order to test
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Knowing node name in order to test
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 3 Sep 2001 17:01:58 +0100
- References: <98C7D2E5BCD2374C9AAE0BCD2E9C1DD907606D@esebe013.NOE.Nokia.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> When I'm processing an element
> user, server or pass, how can I
> test the tag name against a string?
>
> current tag name = 'pass' ?!?!
name() = 'pass'
Jarno
or (often better) <xsl:if test="self::pass">
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