xsl:for-each iterate based on count of nodes
Posted on 2003-03-12
I'm new to xsl and need some help.
1. I'm trying to output the same text information based on the count of the node (./shipTo/item/qty)
2. Here's my code. Notice I'm using a variable "numValues" to store the count, so I can use it in my for each. When I do so, I get the error "Cannot convert #NUMBER to a NodeList!"
<xsl:value-of select="./transSetId"/>,<xsl:value-of select="./releaseId"/>,<xsl:value-of select="./shipTo/item/qty"/>,<xsl:value-of select="./shipTo/item/qty/@um"/>,<xsl:value-of select="./shipTo/item/qty/@due"/>,<xsl:text>
3. Here's a sample of what I expect as a result:
4. How can I repeat the information for each incident of the ./shipTo/item/qty node?
Can you help?