xsl-list
[Top] [All Lists]

Re: How to sort?

2004-10-14 04:22:06

  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[(_at_)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
________________________________________________________________________


<Prev in Thread] Current Thread [Next in Thread>