Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Sort transformation result >Thread Next - Re: Sort transformation result Re: Sort transformation resultTo: NULL Date: 5/19/2009 7:57:00 PM Markgoldin wrote:
> <"menu" elements which have "menu" child elements?
> Exactly.
> At any level I would want to have parent nodes shown first.
Then use
<xsl:apply-templates select="//tree[@parentid=$ID]">
<xsl:sort select="not(//tree[@parentid = current()/@menuid])"/>
</xsl:apply-templates>
in your <xsl:template match="tree">.
--
Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
