Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - RE: [xsl] Help with XPath statement [Thread Next] Re: [xsl] Help with XPath statementTo: Date: 3/2/2008 11:39:00 PM Raymond Bissonnette wrote: > I'm stuck with XSLT 1.0 (ASP.NET) and worse, what I'm after is > to get a list of <set ... > nodes with the SelectNodes method > of an XmlDocument. I don't know XmlDocument. If you want XSLT, change <xsl:value-of select="."/> by <xsl:copy-of select=".."/> in the solution Ken proposed to you. If you want an XPath: section[@id = '0802']/set[ not(@key = ../following-sibling::section/set/@key) ] | section[@id = '0803']/set or: section[@id = '0802']/set[ not(@key = ../../section[@id = '0803']/set/@key) ] | section[@id = '0803']/set should be what you are after. Not tested! Regards, --drkm _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
