[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] xsl:sort by element name
Subject: [xsl] xsl:sort by element name From: Mike Ferrando <mikeferrando@xxxxxxxxx> Date: Wed, 13 Mar 2002 07:57:32 -0800 (PST) |
Dear List, I am trying to sort my output nodes based on their element name. Could someone give me a hint on this one? Mike F. XML: <LLL> <C1012>...C-data...</C1012> <C1012>...A-data...</C1012> <C1012>...B-data...</C1012> </LLL> Output should be: <LLL> <C1012>...A-data...</C1012> <CC1012>...B-data...</CC1012> <CCC1012>...C-data...</CCC1012> </LLL> XSL: <xsl:template select="/"> <xsl:for-each select="/*"> <xsl:sort select="name()"/> <xsl:apply-templates select="C1012"/> </xsl:for-each> </xsl:template> __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] adding variables, David Carlisle | Thread | RE: [xsl] xsl:sort by element name, Michael Kay |
RE: [xsl] Counting non-empty elemen, Sergej | Date | RE: [xsl] JavaScript access to <xsl, Smothers, Brian |
Month |