I have a stylesheet containing a number of <xsl:test> statements.
Rather than having:
<xsl:if test="name() = 'forObj'">...........call template
<xsl:if test="name() = 'flow'">............call template
<xsl:if test="name() = 'step'">............call template
....etc
all of which call the same template is it possible to test if name() =
forObj OR flow OR step etc in one statement?
Try the following :-
<xsl:if test="name() = 'forObj' or name() = 'flow' or name() = 'step'">
Cheers.
Arun
From: Phillip Nicolson <pjn3(_at_)star(_dot_)le(_dot_)ac(_dot_)uk>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] <xsl:test="">
Date: 16 Sep 2004 10:58:00 +0100
I have a stylesheet containing a number of <xsl:test> statements.
Rather than having:
<xsl:if test="name() = 'forObj'">...........call template
<xsl:if test="name() = 'flow'">............call template
<xsl:if test="name() = 'step'">............call template
....etc
all of which call the same template is it possible to test if name() =
forObj OR flow OR step etc in one statement?
Many thanks for suggestions
--
Phillip Nicolson
Department of Physics & Astronomy Phone: (0)116 2523581
University of Leicester Email:
pjn3(_at_)star(_dot_)le(_dot_)ac(_dot_)uk
Leicester LE1 7RH Web: http://www.astrogrid.org
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--
_________________________________________________________________
Search for your life partner made easy.
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 On
BharatMatrimony.com