how to iterate through xml array in xsl
Hi,
I have xml like this
<TIP>
<ROW>
<amount> </amount>
<date></date>
</ROW>
<ROW>
<amount> </amount>
<date></date>
</ROW>
</TIP>
and I want to transform it to another xml from xsl by <xsl:for-each>
<xsl:variable name="all" select="./TIP" />
<xsl:for-each select="$all" >
</xsl:for-each>
the $all gives me array but I want to have value of an array how can I do it?
Thanks
[665 byte] By [
Isaaka] at [2007-11-27 5:13:07]

# 1
Not sure if I understand the question. But if you want to iterate over the ROWs, you can write:
<xsl:for-each select="TIP/ROW">
Amount is = <xsl:value-of select="amount"/>
Date is = <xsl:value-of select="date"/>
</xsl:for-each>
Hope this helps.
# 2
After <xsl:for-each select="TIP/ROW">
cursor jumbs over for-each.
It enters in a for-each after <xsl:for-each select="//TIP/ROW"> .
I have to pass the value of amount to JavaScript in a xsl. When I pass the value JavaScript gets it whith {MS.Internal.Xml.XPath.XPathArrayIterator}
, which I cannot use there.
Isaaka at 2007-7-12 10:34:32 >
