我想遍历xml文档中的所有cd元素。
<?xml version="1.0" encoding="iso-8859-1"?>
<ns0:catalog xmlns:ns0="http://Catalog.MP">
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
<cd>
<title>Greatest Hits</title>
<artist>Dolly Parton</artist>
<country>USA</country>
<company>RCA</company>
<price>9.90</price>
<year>1982</year>
</cd>
<cd>
在XSLT中我会做类似的事情并使用foreach循环:
<xsl:output method="html" indent="yes"/>
<xsl:template match="/ns0:catalog">
<div class="catalog">
<xsl:for-each select="cd">
<div class="cd">
<div class="title">
<xsl:value-of select="title/text()" />
</div>
<div class="artist">
<xsl:value-of select="artist/text()" />
</div>
<div class="country">
<xsl:value-of select="country/text()" />
</div>
<div class="company">
<xsl:value-of select="company/text()" />
</div>
<div class="price">
<xsl:value-of select="price/text()" />
</div>
<div class="year">
<xsl:value-of select="year/text()" />
</div>
</div>
</xsl:for-each>
但是如何在Biztalk中使用等效的functoid?
答案 0 :(得分:1)
答案 1 :(得分:0)
以下是使用表循环functoid的演练 - 我相信这与您想要的类似:
http://blog.danshultz.com/2007/08/table-looping-functoid-scenario.html