[xsl] Apply-templates (filtering with an if statement)

Subject: [xsl] Apply-templates (filtering with an if statement)
From: "Tucker, George" <GTucker@xxxxxxxxxxxxx>
Date: Mon, 1 Dec 2003 11:53:25 -0500
I want to grab a list of cutters from my xml document and filter it with an
if statement.  All this I want to do inside of a seperate template.

I am getting the information...a list of cutters, but they are not being
filter as the if statement indicates.  I simply get a list of all the
cutters in the xml document; the choose works...it applys the comma and
period as instructed.  But why is the filtering (if) not working.
Incidentally,  these type filters are working elsewhere in my xsl document,
just not within this template.

using msxml

<?xml version="1.0"?>

<xsl:stylesheet version="2.0" 



<xsl:template match="AVAILABILITY">

<xsl:apply-templates select="CUTTER"/>

<xsl:if test="translate(REV0DEL,'-','') &lt;= translate($TD1,'-','')">
<xsl:if test="translate(REV0DEL,'-','') &gt;= translate($TD1,'-','')-7 or
translate(REV0DEL,'-','') &gt;= translate($TD1,'-','')-77">

<xsl:when test="CUTTER[@projkind='IND']">
<xsl:when test="position()!=last()">
<xsl:text>, </xsl:text>



George Tucker
Phone: 757-628-4570
Fax: 757-628-4585
eMail: gtucker@xxxxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread