[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl:when - comparing parameter and element values

Subject: RE: xsl:when - comparing parameter and element values
From: "Keith" <keith@xxxxxxxxxxxxx>
Date: Fri, 5 Jan 2001 16:51:26 -0600
xsl when
I'm not positive, but it looks like you're using javascript in the xsl.  I
believe the 'and' operator is actually 'and', not &&


Keith Brooks
Software Developer
Global eTelecom
Keith@xxxxxxxxxxxxxxxxxx

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of RUSSO, EDITH
Sent: Friday, January 05, 2001 3:58 PM
To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  xsl:when - comparing parameter and element values


I can't get the right syntax for the comparison between the two values for
xsl:when.
What I want to test is when the 'showcasemgmt' parameter contains the value
"true" and the element 'casemgmtind' contains the value "FALSE".
The second part to my question is...only if this case is NOT satisfied, do I
want to output a <tr>, if I leave the contents of the "when" empty, will
that work?

Thanks - Edith

Here's my xml and xsl:

<?xml version="1.0"?>
<PATHFINDER version="2000">
<Task>
<DueDate>10/4/00</DueDate>
<StartDate>10/2/00</StartDate>
<Subject>Arbitration Brief - Prepare</Subject>
<AssignTo>xxx</AssignTo>
<DateCompleted>10/24/00</DateCompleted>
<IsRecurring>FALSE</IsRecurring>
<CaseMgmtInd>FALSE</CaseMgmtInd>
<EntryID>111</EntryID>
</Task>
</PATHFINDER>

<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
...
	<xsl:param name="showcasemgmt">true</xsl:param>
	<xsl:template match="/">
...
				<xsl:apply-templates
select="PATHFINDER/Task">
...
	<xsl:template match="PATHFINDER/Task">
		<xsl:choose>
			<xsl:when test="$showcasemgmt='true' &&
CaseMgmtInd='FALSE'"></xsl:when>
			<xsl:otherwise>
				<tr>
...
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>


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



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.