|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Q.) xsl (if no param, set to 'xyz'?)
Hi,
Often times in my xsl's, I'm checking for a param value, and outputing
different HTML/calling different template/stylesheets based on the
value.
Example: (Rainbow)
<!--[need logic here for: [test="not($rainbow_colour)" set to
'orange']]-->
<xsl:when test="$rainbow_colour='red'">
<xsl:apply-templates........>
</xsl:when>
<xsl:when test="$rainbow_colour='orange'">
<xsl:apply-templates........>
</xsl:when>
<xsl:when test="$rainbow_colour='yellow'">
<xsl:apply-templates........>
</xsl:when>
<xsl:when test="$rainbow_colour='green'">
<xsl:apply-templates........>
</xsl:when>
etc.
How do I do the "logic" at the top, to supply a default value for the
parameter, IF it doesn't have a value...
If I can't do this... how do I do a workaround for it?
Cheers,
Steve
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
|

Cart








