Re: [xsl] select all answers belongs to one question from xml with xpath

Subject: Re: [xsl] select all answers belongs to one question from xml with xpath
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 1 Jul 2005 09:41:36 +0100
  i am trying to write xpath which allows me to get all answers belongs to
  one question along with the question that has the answers
  i am get stuck

If the current node is a <question>

then 

<xsl:copy-of select=".|../../ans/answer[@question=current()/@id"/>

will give you this question along with all its answers.

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