Subject: Re: [xsl] Grouping problem From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Mon, 01 Aug 2005 10:35:44 +0200 |
I am trying to do grouping operation with the following XSL - <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/root"> <groups> <xsl:for-each select="*[not(name() = name(preceding-sibling::*))]"> <group name="{name()}" /> </xsl:for-each> </groups> </xsl:template> </xsl:stylesheet>
regards, -- Joris Gillis (http://users.telenet.be/root-jg/me.html) Deserta faciunt et innovationem appelant
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Grouping problem, Mukul Gandhi | Thread | Re: [xsl] Grouping problem, Mukul Gandhi |
[xsl] Grouping problem, Mukul Gandhi | Date | Re: [xsl] Grouping problem, Mukul Gandhi |
Month |