Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Sort transformation result >Thread Next - Re: Sort transformation result Re: Sort transformation resultTo: NULL Date: 5/18/2009 5:39:00 PM Markgoldin wrote:
> <xsl:apply-templates select="//tree[@parentid=$ID]">
> </xsl:apply-templates>
> </menu>
> </xsl:template>
> </xsl:stylesheet>
>
> I need to sort my tree showing folders first. Can someome help, please?
Well you have not shown your XML at all. I guess it somehow contains
information that an item is a folder or something else so you need to
sort on that information. But without knowing your XML it is hard to
make a concrete suggestion.
Sorting can be done inside the apply-templates e.g.
<xsl:apply-templates select="//tree[@parentid = $ID]">
<xsl:sort select="treetype"/>
</xsl:apply-templates>
--
Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
