Subject: Re: [xsl] generic sorting problem From: "peter willard donisthorpe" <paytur@xxxxxxxxxxx> Date: Tue, 06 Sep 2005 20:10:03 +0000 |
I need to sort the children of the root element by _their_ first child.
I suggest you try this for a starters:
<xsl:template match="/*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:for-each select="*"> <xsl:sort select="*[1]"/> <xsl:copy-of select="."/> </xsl:for-each> </xsl:copy> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] generic sorting problem, Joris Gillis | Thread | [xsl] Re: Indentation question, iwantto keepanon |
Re: [xsl] generic sorting problem, Joris Gillis | Date | Re: [xsl] apply-templates issue, Joris Gillis |
Month |