在foreach循环中可以在同一语句中获得大于和小于的位置。
目前我有<xsl:for-each select="(/*/Request/InvoiceDetailRequest/InvoiceDetailOrder/InvoiceDetailItem)[10 >= position()]">
我想要<xsl:for-each select="(/*/Request/InvoiceDetailRequest/InvoiceDetailOrder/InvoiceDetailItem)[10 >= position()] and [10 <= position()">
将谓词条件的两个部分放在同一方括号中:
(....)[(10 >= position()) and (5 <= position())]