Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bev0 39 posts 59 karma points
    Jun 11, 2014 @ 02:25
    bev0
    0

    how to get around multiple <xsl:sort../> due limitation ?

    hi all,

    i'm trying to sort my list of movies in a specific order. my movie list is from source #1 ($MovieList), while loop thru that list to display its data, i need to sort its movie_id by source #2 ($MovieSort)...

    <xsl:for-each select="$MovieList/Movie">
      <xsl:sort data-type="number" select="count($MovieSort [movie_id[1]=current()/ID])" order="descending"/>
      <xsl:sort data-type="number" select="count($MovieSort [movie_id[2]=current()/ID])" order="descending"/>
      <xsl:sort data-type="number" select="count($MovieSort [movie_id[3]=current()/ID])" order="descending"/>

      .....and so on

      [[<xsl:value-of select="current()/ID"/>]]

    </xsl:for-each>

    the number of <xsl:sort.../> were fine until i hit up to move_id[13], that's when it blows up. i guess it's the limitation of Umbraco XSL ?

    is there a better way to do this ? please help.

    thanks in advance!

     

     

     

     

     

     

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    Jun 13, 2014 @ 23:17
    Chriztian Steinmeier
    0

    Hi bev0,

    Could you show some of your XML (Movie nodes and the $MovieSort nodeset), and an example of the order you're trying to render them in?

    Are you trying to "shoot" some specific Movie elements to the top of the list?

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft