Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] select all answers belongs to one question from xml with xpath [Thread Next] Re: [xsl] select all answers belongs to one question from xml with xpathTo: Date: 7/1/2005 8:42:00 AM 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 ________________________________________________________________________ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
