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

Re: [xsl] Need help correcting XSL


Subject: Re: [xsl] Need help correcting XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 19 Jul 2005 16:13:18 +0100

  select="Reports/report[item='AAA' and
  item/@listFilter='hot']">

that says select reports that have an item = AAA and an item with a hot
attribute. (which may be different items, note you select item twice in
the above)

You want to select reports that have an item thathas both those things

select="Reports/report[item[.='AAA' and @listFilter='hot']]">

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread