XSLT Going through array value

TEWAMATHE

New Member
Here is variable:\[code\]<xsl:variable name="WepNr" select="/*/DbResponse/ResultSet/Row[Cell[@name='ARTNR']=$ArtNr][Cell[@name='WEANR']=$WeaNr]/Cell[@name='WEPNR']"/>\[/code\]It can return multiple values, so in that case it will output something like: \[code\]2 21 36\[/code\] =3 values.I try to go through them:\[code\]<xsl:for-each select="$WepNr"> <LineNumber><xsl:value-of select="$WepNr"/></LineNumber></xsl:for-each>\[/code\]but it just outputs same value \[code\]2 21 36\[/code\] for three times:\[code\]<LineNumber>2 21 36</LineNumber><LineNumber>2 21 36</LineNumber><LineNumber>2 21 36</LineNumber>\[/code\]How can I output 3 times like:\[code\]<LineNumber>2</LineNumber><LineNumber>21</LineNumber><LineNumber>36</LineNumber>\[/code\]?
 
Back
Top