Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Sort transformation result [Thread Next] Re: Sort transformation resultTo: NULL Date: 5/19/2009 1:12:00 PM Boy, works like a charm, thanks !!! "Martin Honnen" <mahotrash@y...> wrote in message news:OugsAtK2JHA.4880@T...... > 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 | |||
|
