Subject: [xsl] xsl:when - comparing parameter and element values From: "RUSSO, EDITH" <EDIRUS@xxxxxxxxxx> Date: Fri, 5 Jan 2001 13:57:51 -0800 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:key and document(), David Carlisle | Thread | RE: [xsl] xsl:when - comparing para, Keith |
Re: [xsl] Finding the maximun numbe, Dimitre Novatchev | Date | [xsl] (or) statement in setting nod, Keith |
Month |