Subject: RE: [xsl] xsl:when - comparing parameter and element values From: "Keith" <keith@xxxxxxxxxxxxx> Date: Fri, 5 Jan 2001 16:51:26 -0600 |
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] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:when - comparing paramete, RUSSO, EDITH | Thread | Re: [xsl] xsl:when - comparing para, Jeni Tennison |
[xsl] (or) statement in setting nod, Keith | Date | [xsl] treat a string into a variabl, Pouliot, Brian R. |
Month |