[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Sorting by child element count
Thanks, Ken -- worked like a charm. Mark -----Original Message----- From: G. Ken Holman Sent: Wednesday, December 29, 2010 7:39 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Sorting by child element count The sort criteria can be any calculation, it does not have to be performed on data found in the instance, therefore the criteria is simply expressed as: <xsl:apply-templates select="Item"> <xsl:sort select="count(Data)" data-type="number"/> </xsl:apply-templates> I hope this helps. . . . . . . . . . . Ken At 2010-12-29 07:21 -0800, Mark wrote: Happy new year! Thanks for all the help this list has given me over the past two years. My question: -- Contact us for world-wide XML consulting & instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
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
|