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.
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.
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.
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
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
is working on a reply...