Thanks Steve.
Any help with the date comparasions in XSLT?
From: Steve <subsume(_at_)gmail(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] NEED XSLT HELP
Date: Thu, 6 Sep 2007 15:23:55 -0400
Incredibly vague but here goes:
<xsl:template match="/">
<xsl:for-each select="Emp">
<xsl:choose>
<xsl:when test="TYPE='A'">
<xsl:choose>
<xsl:when test="*complicated date
logic*">FULL_NEW</xsl:when>
<xsl:otherwise>FULL</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="TYPE='B'">PART_TIME</xsl:when>
<xsl:otherwise>-</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
On 9/6/07, Waqar Ali <waqarali_pk(_at_)hotmail(_dot_)com> wrote:
> Hi,
>
> XML:
> ====
> <EMP>
> <ID>1</ID>
> <TYPE>A</TYPE>
> <HIRE_DATE>2007-05-20</HIRE_DATE>
> </EMP>
> <EMP>
> <ID>2</ID>
> <TYPE>B</TYPE>
> <HIRE_DATE>2007-09-1</HIRE_DATE>
> </EMP>
> <EMP>
> <ID>3</ID>
> <TYPE>A</TYPE>
> <HIRE_DATE>2007-08-20</HIRE_DATE>
> </EMP>
>
>
> LOGIC I NEED IN XSLT:
> ==============
> IF TYPE = A
> IF HIRE IN LAST 60 DAYS
> 'FULL_NEW'
> ELSE
> 'FULL'
> ELSE IF TYPE = B
> 'PART_TIME'
> ELSE
> '-'
>
> Please help me out in this.
>
> Thanks,
> -Waqar
>
>
>
> --~------------------------------------------------------------------
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
> --~--
>
>
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--