Subject: Re: [xsl] XSLT grouping without Muenchen Method From: "cking" <cking@xxxxxxxxxx> Date: Tue, 31 Aug 2004 04:06:15 +0200 |
Hi Ismael, oops... I see my output is not entirely correct > object1;object3;Instance0;2004-08-30 15:00:00 > object4;object6;Instance1;2004-08-30 15:00:00 > object2;Instance0;2004-08-30 15:30:00 > object5;Instance1;2004-08-30 15:30:00 You want a ',' between objects, not a ';' Replace my <xsl:template match="object" mode="write"> with: <xsl:template match="object" mode="write"> <xsl:variable name="interval" select="@interval"/> <xsl:variable name="instance" select="@instance"/> <xsl:value-of select="@name"/> <xsl:choose> <xsl:when test="following-sibling::object[@interval=$interval and @instance=$instance]">,</xsl:when> <xsl:otherwise>;</xsl:otherwise> </xsl:choose> </xsl:template> Greetings Anton Triest
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT grouping without Mue, cking | Thread | Re: [xsl] XSLT grouping without Mue, Ismael Cams |
Re: [xsl] sorting titles w stopword, cking | Date | Re: [xsl] variable question, Bruce D'Arcus |
Month |