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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -