|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL/XPath Dynamic sort key
And my final line of code supports up to three dynamic sub levels with the
final reference being an element or attribute.
<xsl:sort select="*[name()=$sort_select_lvl_3]/*[name()=$sort_select_lvl_2]/*[name()=$sort_select_lvl_1]/@*[name()=$sort_select]|*[name()=$sort_select_lvl_3]/*[name()=$sort_select_lvl_2]/*[name()=$sort_select_lvl_1]/*[name()=$sort_select]|*[name()=$sort_select_lvl_2]/*[name()=$sort_select_lvl_1]/@*[name()=$sort_select]|*[name()=$sort_select_lvl_2]/*[name()=$sort_select_lvl_1]/*[name()=$sort_select]|*[name()=$sort_select_lvl_1]/@*[name()=$sort_select]|*[name()=$sort_select_lvl_1]/*[name()=$sort_select]|*[name()=$sort_select]" data-type="{$sort_data_type}" order="{$sort_order}" /> and believe it or not it actually works. I wish there was a better way but I'll just not worry about it. The reason I can't use saxon, even though I would really like to, is I need it web enabed. (I am assuming here that using saxon limits you to the local command line, which I'm sure is completely wrong)
_________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








