I made an XSLT which shows a different docType for every day of the week. I have set the weekdays:
<xsl:variable name="today" select="Exslt.ExsltDatesAndTimes:dayinweek()"/>
...
<xsl:if test="$today = '2'">
call docType "Monday"
</xsl:if>
<xsl:if test="$today = '3'">
call DocType "Tuesday"
</xsl:if>
Now I copy the same piece of XSLT for the seven weekdays. Is is possible to set a string depending on the outcome of another string?
Something like if $today = "4" then $docType = "Wednesday"?
Thanks,
Ralph
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/16457-if-then-statement-in-xslt