且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要在 xslt1.0 中使用条件参数识别重复项

更新时间:2023-11-04 11:14:52

您使用 for-each-group 但将问题标记为 xslt-1.0,这不有道理.

You use for-each-group but tag the question as xslt-1.0, that does not make sense.

假设使用 XSLT 2.0 处理器,我认为您只是想要

Assuming an XSLT 2.0 processor I think you simply want

<xsl:for-each-group select="$depositAccount/EligibleDepAccount[status = 'Y']" group-by="number"> 
  <xsl:copy-of select="."/>
</xsl:for-each-group>