Subject: Re: [xsl] NEED XSLT HELP From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 06 Sep 2007 17:24:07 -0400 |
<xsl:template match="EMP[TYPE='A']"> <xsl:text>FULL</xsl:text> <xsl:variable name="within-60-days" select=" ... "/> <xsl:if test="$within-60-days">_NEW</xsl:if> </xsl:template>
<xsl:template match="EMP[TYPE='B']"> <xsl:text>PART_TIME</xsl:text> </xsl:template>
<xsl:template match="EMP"> <xsl:text>-</xsl:text> </xsl:template>
I hope this helps, Wendell
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
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Date comparasions, Eric Bréchemier | Thread | RE: [xsl] [XSL] Accessing part of t, Michael Kay |
Re: [xsl] Date comparasions, Eric Bréchemier | Date | RE: [xsl] Date comparasions, Michael Kay |
Month |