for-each grouping question

Get new comments by email
You can cancel email alerts at anytime.
Comments (1)

MONA in Melbourne, Australia

71 months ago

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...........

<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 />

- Was this comment helpful? Yes / No Reply - Report abuse

» Sign in or create an account to comment on this topic.