xsl-list
[Top] [All Lists]

RE: [xsl] Help with XPath statement

2008-03-03 09:33:51

Thank you very much. It works perfectly.

Raymond

-----Original Message-----
From: Florent Georges [mailto:lists(_at_)fgeorges(_dot_)org] 
Sent: Sunday, March 02, 2008 6:36 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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[(_at_)id = '0802']/set[
        not(@key = ../following-sibling::section/set/@key) ]
    | section[(_at_)id = '0803']/set

or:

    section[(_at_)id = '0802']/set[
        not(@key = ../../section[(_at_)id = '0803']/set/@key) ]
    | section[(_at_)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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--