Subject: Re: [xsl] xsl:sort From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 21 Jun 2004 15:05:35 -0400 |
I am using xsl:sort to sort through rows of xml data, the code is dynamic so that a user can specify what attribute to "order by".
The problem is the way that the xml data is formatted, optional attributes do not always exist, so when i try to use one of these values in the <xsl:sort> it does not work when all rows do not have that attribute.
So the code works great if each "row" has the given attribute, but does not if the row does not have the attribute (like "device_os" below) Any ideas?
-- 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 -> |
---|---|---|
xsl:sort, April Fleming | Thread | Converting HTML to Plain Text, Radha Chandika |
Re: [xsl] XSL-FO : table-cell width, J.Pietschmann | Date | Converting HTML to Plain Text, Radha Chandika |
Month |