[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: <xsl:test="">

Subject: RE: <xsl:test="">
From: "Arun Sinha" <arunsinha666@xxxxxxxxxxx>
Date: Thu, 16 Sep 2004 10:58:37 +0000
xsl test
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@xxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  <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@xxxxxxxxxxxxx
Leicester        LE1 7RH			Web:	http://www.astrogrid.org


_________________________________________________________________
Search for your life partner made easy. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 On BharatMatrimony.com


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.