Subject: Re: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to sort?, Mike G | Thread | RE: [xsl] How to sort?, Jarno.Elovirta |
RE: [xsl] How to sort?, Jarno.Elovirta | Date | Re: [xsl] How to sort?, Mike G |
Month |