Just a question about your code, I try to use parameter like you, but from another page. What is wrong here???
Sitemap : ========= <map:transform type="xslt" src="test.xsl"> <map:parameter name="use-request-parameters" value="true"/> </map:transform> XSL : ===== <xsl:variable name="password"><xsl:param name="password"/></xsl:variable> ... <user> <name><xsl:value-of select="cn"/></name> <password>normalize-space(password)</password> </user> -----Original Message----- From: Tim Bachta [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 4:08 AM To: [EMAIL PROTECTED] Subject: conditions in xsl Is it possible to do if statements in an xsl page. What I am trying to do is set the first value I get back as selected then set the rest as unselected. Example since it is hard to explain. I currently have this: <xsl:template match="report"> <xsl:variable name="report-name"><xsl:value-of select="report-name"/></xsl:variable> <div id="sw{normalize-space(report-name)}" class="dlgSwitchSelected" ><img src="images\icons\occurrenceOverview.gif" /><xsl:value-of select="normalize-space(report-name)"/></div> </xsl:template> this gives me back this: <div class="dlgSwitchSelected" id="swOverdue Task Report"> <img src="images\icons\occurrenceOverview.gif">Overdue Task Report</div> <div class="dlgSwitchSelected" id="swTask Status Report"> <img src="images\icons\occurrenceOverview.gif">Task Status Report</div> <div class="dlgSwitchSelected" id="swUn-Assigned Task Report"> <img src="images\icons\occurrenceOverview.gif">Un-Assigned Task Report</div> What I want is to get this back: <div class="dlgSwitchSelected" id="swOverdue Task Report"> <img src="images\icons\occurrenceOverview.gif">Overdue Task Report</div> <div class="dlgSwitch" id="swTask Status Report"> <img src="images\icons\occurrenceOverview.gif">Task Status Report</div> <div class="dlgSwitch" id="swUn-Assigned Task Report"> <img src="images\icons\occurrenceOverview.gif">Un-Assigned Task Report</div> where the only one that has the selected class is the first one. Any help would be great. Thank you very much. Tim Bachta --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]