[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Trying to sort node set while tagging specific nod
google for muenchian grouping, then <xsl:key name="a" match="rec" use="name"/> <xsl:template name="root"> <root> <xsl:for-each select="rec[generate-id()=generate-id(key('x',name))]"> <xsl:sort select="name"/> <xsl:for-each select="key('x',name)"> <xsl:sort data-type="number" select="year"/> <rec> <xsl:if test="position()=1"> <xsl:attribute name="tag">latest</xsl:attribute> </xsl:if> <xsl:copy-of select="*"/> </rec> </xsl:for-each> </xsl:for-each> </root> </xsl:template> ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
|
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
|