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

Comparing Node Text Content with a String Set

Subject: Comparing Node Text Content with a String Set
From: Matthew Corr <matthewcorr@xxxxxxxxxxxx>
Date: Tue, 28 Oct 2003 16:41:08 +1100 (EST)
matt corr
Hello all,

Yes I am an XSLT newbie, but I have searched
everywhere for an answer to this seemingly simple
problem with no success.

I am trying to work out a way to encapsulate comparing
a node's text with a string set for a possible match.

ie.. instead of having the following <if test> syntax
all through my multiple xslt files:

<xsl:if test="ACCTTYPE = 'AAA' or
              ACCTTYPE = 'BBB' or
              ACCTTYPE = 'CCC' or
              ACCTTYPE = 'DDD' or
              ACCTTYPE = 'EEE'">
	        
I am curious if there is a way to define this once in
a common xslt file which is then imported into my many
xslt files, so if new types are added or removed, it
only has to be changed once?

Thanks!

Matt


http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.