Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Checking preceding siblings in a foreach group Checking preceding siblings in a foreach groupTo: NULL Date: 4/5/2007 2:13:00 AM
I am trying to produce output like this:
01/01/2007 Something for january 1st
Something else for january 1st
And another for january 1st
05/01/2007 A data row for january 5th
And another for january 5th
And I'm using code like this:
<xsl:for-each select="transactions/transdet">
<xsl:sort select="lduk_vp_date"/>
<tr valign="top">
<td align="left">
<xsl:if test="lduk_vp_date != preceding-sibling::*[1]/
lduk_vp_date">
<xsl:call-template name="shortdate">
<xsl:with-param name="datetime">
<xsl:value-of select="lduk_vp_date"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</td>
etc.
This is KIND OF working, but I've realised that my date field
(lduk_vp_date) contains a time component too, but I'm not interested
in the time. My output is therefore looking like this:
01/01/2007 00:01:15 Something for january 1st
01/01/2007 06:23:05 Something else for january 1st
01/01/2007 07:01:11 And another for january 1st
05/01/2007 06:45:22 A data row for january 5th
05/01/2007 06:45:25 And another for january 5th
Is there anything I can do to avoid this? I'm restricted to XSL
Version1 unfortunately.
Thanks
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
