[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Selecting a node based on two sub-element values


Subject: RE: [xsl] Selecting a node based on two sub-element values
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 15 Feb 2005 16:38:43 -0000

> 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']
> 

Better, I think, is

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

Michael Kay
http://www.saxonica.com/


Current Thread