[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSLT grouping without Muenchen Method

Subject: Re: XSLT grouping without Muenchen Method
From: "cking" <cking@xxxxxxxxxx>
Date: Tue, 31 Aug 2004 04:06:15 +0200
xsl grouping method
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.