[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:when - comparing parameter and element values
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|