[XSL-LIST Mailing List Archive Home]
RE: [xsl] Selecting a node based on two sub-element values
Subject: RE: [xsl] Selecting a node based on two sub-element values|
From: Kevin Rodgers <kevin.rodgers@xxxxxxx>
Date: Tue, 15 Feb 2005 08:48:35 -0700
Michael Kay writes:
> > <xsl:if test="*/VALUE/text() = 'AA'
> It's rarely a good idea to use /text() in this kind of comparison: better to
> compare the value of the element itself:
> test="*/VALUE = 'AA'
Can I then infer that I should refactor this test expression
org_list/org_code[@type='APPR' and text()='ANSI']
org_list[org_code@type='APPR' and org_code='ANSI']