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="*[1]/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="*[1]/VALUE = 'AA'

Can I then infer that I should refactor this test expression

	org_list/org_code[@type='APPR' and text()='ANSI']

to

	org_list[org_code@type='APPR' and org_code='ANSI']

Thanks,
-- 
Kevin Rodgers

Current Thread