Re: [xsl] FW: Troubleshooting a sort

Subject: Re: [xsl] FW: Troubleshooting a sort
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 19 Feb 2004 20:46:54 GMT
<xsl:for-each select="//SAVEIdeas/SAVEIdea">
you don't want // there just / unless you really want to search the
entire document to arbitrary depth looking for all the SAVEIdesas

then you have
    <xsl:sort select="*[name()=$param1]"/>
so sorting on the children of the specified name but your status element
isn't a child oits a grandchild so you need
    <xsl:sort select="(*|status_history/*)[name()=$param1]"/>



 XSL-List info and archive:

Current Thread