XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Posttop
mona sSubject: q on group function
Author: mona s
Date: 03 Oct 2008 11:20 AM
Hi iam tring to group data variable startHour and startMinute, see below, but iam not sur ehot to pass varavble to be sorted in for-each statment. this is xsl 2.0 and xml programming language.......se below........... but i dont how to pass varibale in for each statement...below is teh code where i have to use

<xsl:for-each-group select="*" group-by="$StartHour">
- <xsl:for-each-group select="current-group()" group-by="$StartMinute">
<xsl:value-of select="$StartMonth" />
/
<xsl:value-of select="$StartDay" />
/
<xsl:value-of select="$StartYear" />
<xsl:text></xsl:text>
<xsl:value-of select="$StartHour" />
:
<xsl:value-of select="$StartMinute" />
-
- <xsl:choose>
- <xsl:when test="$DurationHour">
<xsl:value-of select="$StartHour + $DurationHour" />
:
</xsl:when>
- <xsl:otherwise>
<xsl:value-of select="$StartHour" />
:
</xsl:otherwise>
</xsl:choose>
- <xsl:choose>
- <xsl:when test="$DurationMinute">
<xsl:value-of select="$StartMinute + $DurationMinute" />
</xsl:when>
- <xsl:otherwise>
<xsl:value-of select="$StartMinute" />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each-group>
</xsl:for-each-group>
</span>
</a>
<br />

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.