Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Conditional for-each. Please help me. I've read all the internet groups [Thread Next] Re: Conditional for-each. Please help me. I've read all the internet groupsTo: NULL Date: 3/14/2007 5:36:00 AM
<srecce@g...> wrote in message
news:1173816750.942051.29450@l......
> Somebody knows how to do that ?
>
>
> <xsl:variable name="test1" select="//row" />
> <xsl:variable name="test2" select="//row[substring(@CreateDate,1,4)=
> $byYear]" />
>
> IF I = 1 then
> <xsl:for-each select="$test1">
> ELSE
> <xsl:for-each select="$test2">
Use:
<xsl:for-each select="($test1)[$I = 1] | ($test2)[not($I =
1)] ">
<!-- Whatever must be done here -->
</xsl:for-each>
Cheers,
Dimitre Novatchev
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
