xsl:for-each with [not(@Name=preceding::*/@Name)] not working

Discussion in 'XML' started by ksampson@cox.net, Jun 24, 2005.

  1. Guest

    I'm at a loss here.

    I need to loop through a bunch of nodes, but not nodes with repeating
    attribute names.

    I've created sample data, and it works fine with syntax like:

    <xsl:for-each select="yada/yada/yada[not(@Name=preceding::*/@Name)]">
    ...
    This works fine with my sample test XML, but not with my production
    XML.

    Basically, the production data gives back no Nodes. It filters all the
    nodes out.

    I tested the XPath without the [not(@Name=preceding::*/@Name)], and it
    returns several nodes.

    ---------
    Question is. Is the "preceding" axis feature stable in XSLT 1.0, and,
    if so, what is a good way to troubleshoot this problem?

    Thanks.
     
    , Jun 24, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nobody
    Replies:
    4
    Views:
    1,360
    nobody
    Feb 15, 2004
  2. Dimitre Novatchev
    Replies:
    2
    Views:
    458
    Dimitre Novatchev [MVP XML]
    Feb 15, 2004
  3. Tjerk Wolterink

    xsl:for-each for each 3 elements problem

    Tjerk Wolterink, Nov 3, 2004, in forum: XML
    Replies:
    3
    Views:
    441
    Tjerk Wolterink
    Nov 3, 2004
  4. Replies:
    1
    Views:
    3,637
    A. Bolmarcich
    May 27, 2005
  5. Red
    Replies:
    2
    Views:
    1,226
    Pavel Lepin
    May 9, 2007
Loading...

Share This Page