Copied to clipboard

Flag this post as spam?

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


  • ben_a 65 posts 123 karma points
    May 24, 2010 @ 20:48
    ben_a
    0

    How to sort the results of call-template?

    Is it possible to sort the results of a query that uses call-template?

    I can't find a place that will accept the xsl:sort tag inside the call-template tags or in the template itself.

    Normally it would follow the for-each tag, but that's not possible using call-template.

     

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    May 24, 2010 @ 21:09
    Chriztian Steinmeier
    1

    Hi Ben,

    You can only use sort inside for-each and apply-templates - so you'll need to wrap call-template inside either of those, or use one of them inside the named template you're calling.

    What are you trying to sort? I'm certain there's a way to do it.

    /Chriztian

  • ben_a 65 posts 123 karma points
    May 24, 2010 @ 21:51
    ben_a
    0

    I didn't get my morning coffee and it shows. The for-each tag was so deeply nested I believed it wasn't there. I found it in the called template and applied the sort to it.

    Thx!

    Ben

     

Please Sign in or register to post replies

Write your reply to:

Draft