Sign In/My Account | View Cart  
advertisement

Article:
 Sorting in XSLT
Subject: xsl:sort
Date: 2002-08-02 00:49:54
From: aneesh kumar

a good article - congrats!!!

Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • xsl:sort
    2002-08-13 06:03:14 charles asafo

    How do I eliminate duplicates after sorting?
    The following :
    boy
    boy
    girl
    man
    man
    woman
    should become
    boy
    girl
    man
    woman

    • xsl:sort
      2010-05-24 10:45:23 Alan F

      You could try using something like this:


      <xsl:if test="not(current()/@attributed_to = preceding::quote/@attributed_to)">


      inside an <xsl:sort> element to weed out duplicates. I haven't tried it myself, but I saw it in my notes from a class.


Sponsored By: