| Subject: [xsl] Comparing Node Text Content with a String Set From: Matthew Corr <matthewcorr@xxxxxxxxxxxx> Date: Tue, 28 Oct 2003 16:41:08 +1100 (EST) | 
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 | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] Selecting the first sente, Jarno . Elovirta | Thread | [xsl] Re: Comparing Node Text Conte, Dimitre Novatchev | 
| [xsl] Selecting the first sentence , Larry Kollar | Date | RE: [xsl] Do a copy of a document b, Lenz, Georg | 
| Month |