Subject: Re: How to sort?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 14 Oct 2004 12:22:06 +0100
|
now:
<xsl:apply-templates select="Documents/Document[Article/@info = 'main']"/>
Would like to choose all article-elements where info="main" or info="sub".
since the Xpath for or is or, you more or less wrote the answer
yourself. I assume (based on your Xpath) that in fact you want to select
Document elements rather than Article elements, so something like:
Documents/Document[Article[@info = 'main' or @info='sub']]
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 |
- RE: How to sort?, (continued)
- Jarno.Elovirta - Thu, 14 Oct 2004 12:28:58 +0300
- Mike G - Thu, 14 Oct 2004 11:43:11 +0200
- Jarno.Elovirta - Thu, 14 Oct 2004 12:51:07 +0300
- Mike G - Thu, 14 Oct 2004 13:10:06 +0200
- David Carlisle - Thu, 14 Oct 2004 12:22:06 +0100 <=
- Jarno.Elovirta - Thu, 14 Oct 2004 14:18:16 +0300
- Mike G - Thu, 14 Oct 2004 13:40:33 +0200
- Jarno.Elovirta - Thu, 14 Oct 2004 15:06:16 +0300
- Mike G - Fri, 15 Oct 2004 10:07:34 +0200
|
|