Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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!
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 ?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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!
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 ?
is working on a reply...