输入: -逻辑的的xsl:for不明确
<b>
<cac:OrderLine>
<cac:LineItem>
<cbc:ID>1</cbc:ID>
<cbc:Quantity unitCode="KGM">100</cbc:Quantity>
<cbc:TotalTaxAmount currencyID="GBP">17.50</cbc:TotalTaxAmount>
<cac:Price>
<cbc:PriceAmount currencyID="GBP">100.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="KGM">1</cbc:BaseQuantity>
</cac:Price>
</cac:LineItem>
</cac:OrderLine>
<cac:OrderLine>
<cac:LineItem>
<cbc:ID>5</cbc:ID>
<cbc:Quantity unitCode="KGM">300</cbc:Quantity>
<cbc:TotalTaxAmount currencyID="GBP">100.50</cbc:TotalTaxAmount>
<cac:Price>
<cbc:PriceAmount currencyID="GBP">2000.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="KGM">52</cbc:BaseQuantity>
</cac:Price>
</cac:LineItem>
</cac:OrderLine>
其实这是输入结构,如果我们将循环这样
<xsl:for-each select="b/OrderLine/LineItem">
它应该只挑第一个Lineitem但它选择了输入中的所有行项目?任何人都可以在这里解释xsl:for-each的功能。
因为回路应适用于高达秩序本身,而是如何在上面写的代码是采摘在输入文件