xslt - How to make changes in xsl to get distinct values in xsl -
am getting duplicates in list, wanted make distinct .
workflow type ( <xsl:for-each select="//bonaire/rbs/workflowtypelist"> <xsl:if test="@bsslookuptypeid=//bonaire/request/@type_bsslookuptypeid"> <xsl:value-of select="@typename"/> </xsl:if> </xsl:for-each> )
that can done in one-liner using distinct-values()
, predicate expression ([...]
) :
<xsl:for-each select="distinct-values(//bonaire/rbs/workflowtypelist[@bsslookuptypeid=//bonaire/request/@type_bsslookuptypeid]/@typename)"> <xsl:value-of select="."/> </xsl:for-each>
Comments
Post a Comment