Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bev0 39 posts 59 karma points
    Jul 15, 2014 @ 01:38
    bev0
    0

    node value comparison of "!=" is not working

    Hi all,

    here is my strange delima question...

    when i do <xsl:copy-of select="$moviesNode"/>

    i get <movie><id>111</id></movie><movie><id>222</id></movie><movie><id>333</id></movie><movie><id>444</id></movie>

    when i do <xsl:copy-of select="msxml:node-set($moviesExceptionNode)"/>

    i get <mid>222</mid><mid>333</mid>

    when i do <xsl:copy-of select="$moviesNode[id=msxml:node-set($moviesExceptionNode)/mid]/id"/>

    i get <id>222</id><id>333</id> .... which is correct

    BUT ! if i do.... <xsl:copy-of select="$moviesNode[id!=msxml:node-set($moviesExceptionNode)/mid]/id"/>

    it gives me the whole list of $moviesNode and NOT EXCLUDE the id of 222 and 333, may i get some suggestion/advice please ?

    thanks!

  • bev0 39 posts 59 karma points
    Jul 15, 2014 @ 01:56
    bev0
    0

    lol i think i solved my own question

    instead of <xsl:copy-of select="$moviesNode[id!=msxml:node-set($moviesExceptionNode)/mid]/id"/>

    i tried

    <xsl:copy-of select="$moviesNode[not(id=msxml:node-set($moviesExceptionNode)/mid)]/id"/>

    and it worked

    is there a flaw/down side to this way of excluding data ?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies