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
I am trying to compary id's one of them from a node-set created like this:
<xsl:variable name="e"> <Item id="1.1.1 aa" txt="aaa" /> <Item id="1.1.2 bb" txt="bbb" /> <Item id="1.1.3.d" txt="ccc" /> </xsl:variable> <xsl:variable name="ext" select="msxsl:node-set($e)" />
After comparing and nothing happened when it should, I tried just printing out the node-set and it was empty:
<xsl:value-of select="$ext"/>
You items have no value...
<xsl:variable name="e"> <Item id="1.1.1 aa" txt="aaa">my1</Item><Item id="1.1.2 bb" txt="bbb">my2</Item><Item id="1.1.3.d" txt="ccc">my3</Item> </xsl:variable>
Returns my1my2my3
You are my saviour dear sir ;) a great weekend to you!
If you need the id attribute, i guess you could do something like:
<xsl:variable name="e"><Item id="1.1.1 aa" txt="aaa">my1</Item><Item id="1.1.2 bb" txt="bbb">my2</Item><Item id="1.1.3.d" txt="ccc">my3</Item> </xsl:variable><xsl:variable name="ext" select="msxsl:node-set($e)" /><xsl:for-each select="$ext/Item"><xsl:value-of select="@id"/></xsl:for-each>
Seems to have trouble getting the value when it has same id:
<xsl:value-of select="$ext/Item[@id = id]/."/>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
msxsl:node-set shows empty
I am trying to compary id's one of them from a node-set created like this:
After comparing and nothing happened when it should, I tried just printing out the node-set and it was empty:
You items have no value...
Returns my1my2my3
You are my saviour dear sir ;) a great weekend to you!
If you need the id attribute, i guess you could do something like:
Seems to have trouble getting the value when it has same id:
<xsl:value-of select="$ext/Item[@id = id]/."/>
is working on a reply...