Subject: RE: Help with XPath statement
From: Raymond Bissonnette <raybiss@xxxxxxxxxxx>
Date: Mon, 03 Mar 2008 11:33:16 -0500
|
Thank you very much. It works perfectly.
Raymond
-----Original Message-----
From: Florent Georges [mailto:lists@xxxxxxxxxxxx]
Sent: Sunday, March 02, 2008 6:36 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Help with XPath statement
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
|