XSL for-each
问题描述:
嗨
我有C#代码
Hi
I have c# code
foreach(string strItem in arrItems)
arrItems是字符串数组.
我知道xsl上有一个<xsl:for-each select=......>
,但是我不确定是否要放置该表达式.
请帮助
arrItems is an array of strings.
I know there is a <xsl:for-each select=......>
on xsl but I am not sure about put the expression.
Please help
答
<xsl:for-each>
元素可用于选择指定节点集的每个XML元素.看看w3cschool可以得到很好的解释:
http://www.w3schools.com/xsl/xsl_for_each.asp [
The<xsl:for-each>
element can be used to select every XML element of a specified node-set. Have a look at w3cschool for good explanation on this:
http://www.w3schools.com/xsl/xsl_for_each.asp[^]
Good luck!