| Subject: RE: [xsl] xsl:sort From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 21 Jun 2004 16:24:08 -0400 | 
Sorry,
When I say it does not work, I mean it does not sort by that attribute. When the order by value is an attribute that exists in every row (ie. Ip, device_name) then the results are sorted by that attribute, however, if the order by value is "device_os" which does not exist in every row, the data comes back unsorted.
I would like for it to treat the nonexistent attributes as attribute="", as you say that the standard defines, unfortunately that is not what it is doing.
<xsl:template match="rs:data">
 <xsl:comment>Loop over the rows in the recordset</xsl:comment>
 <xsl:for-each select="z:row">
            <xsl:sort select="z:row/@*[name()=$orderBy]"/>
-- Public training 3 days XSLT & 2 days XSL-FO: Phoenix,AZ 2004-08-23 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] xsl:sort, April Fleming | Thread | RE: [xsl] xsl:sort, April Fleming | 
| Re: [xsl] following-sibling::input , Josh Canfield | Date | How to quote "${abc}" so it will pa, Karr, David | 
| Month |