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

K

ksampson

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,247
Members
46,844
Latest member
JudyGvh32

Latest Threads

Top