xsl-list
[Top] [All Lists]

RE: Troubleshooting a sort

2004-02-18 12:32:29
Untested but reasonable idea:

Replace this:
<xsl:sort select="*[name()=$param1]"/>

With this:
<xsl:sort select="descendant::*[name()=$param1]"/>

By the way, where are you applying this template that requires you to use the 
"//" to preface the XPath. Double slashes are often a poor XSLT programming 
practice resulting in unnecessary tree traversal and could lead to performance 
problems and incorrect and hard-to-diagnose bugs. Use them only when there is 
no other reasonable option.

-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>