Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Help with XPath statement

From: Florent Georges <lists@------------>
To:
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent