Subject: Re: [xsl] determine the number of payment methods and specify order depending on page type being viewed From: Caroline Umali <carolineumali@xxxxxxxxx> Date: Tue, 04 Nov 2008 00:09:18 +0000 |
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:html="http://www.w3.org/1999/xhtml"> ... <xsl:template name="checkOutProgressStep"> <xsl:param name="label"/> <xsl:variable name="noOfNodes" select="count(/order/paymentMethods/*)" />
<xsl:choose> <xsl:when test="$noOfNodes = '3'"><!-- check for 3 elements --> <xsl:choose> <xsl:when test="$label = 'directDebit'"> <li class="doubleLine current">Payment by <br/>Direct Debit</li> <li class="doubleLine">Payment by <br/>Credit Card</li> <li class="doubleLine">Payment by <br/>Invoice</li> </xsl:when>
<xsl:when test="$label = 'creditCard'"> <li class="doubleLine completed">Payment by <br/>Direct Debit</li> <li class="doubleLine current">Payment by <br/>Credit Card</li> <li class="doubleLine">Payment by <br/>Invoice</li> </xsl:when>
<xsl:when test="$label = 'invoice'"> <li class="doubleLine completed">Payment by <br/>Direct Debit</li> <li class="doubleLine completed">Payment by <br/>Credit Card</li> <li class="doubleLine current">Payment by <br/>Invoice</li> </xsl:when> </xsl:choose> </xsl:when>
</xsl:choose> </xsl:template> ... </xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] determine the number of p, Wendell Piez | Thread | Re: [xsl] determine the number of p, Wendell Piez |
Re: [xsl] determine the number of p, Wendell Piez | Date | Re: [xsl] character entities, Joe Barwell |
Month |