[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Help with XPath statement

Subject: RE: Help with XPath statement
From: Raymond Bissonnette <raybiss@xxxxxxxxxxx>
Date: Mon, 03 Mar 2008 11:33:16 -0500
RE:  Help with XPath statement
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.