Subject: Re: [xsl] No of Times Named Template called From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Thu, 13 Mar 2008 20:13:24 +0100 |
<xsl:for-each select="report/result"> <tr> <xsl:if test="(position() mod 2 = 0)"> <xsl:attribute name="bgcolor"> #FFF8C6 </xsl:attribute> </xsl:if> <td> <xsl:value-of select="title" /> </td> <td> <xsl:if test="req/* or req/text()"> <textarea rows="$ROWS" cols="$COLS" readonly="true" onClick="alert(this.value)"> <xsl:if test="(position() mod 2 = 0)"> <xsl:attribute name="style">background-color: #FFF8C6</xsl:attribute> </xsl:if> <xsl:copy-of select="req" /> </textarea> </xsl:if> </td> <td> <textarea rows="$ROWS" cols="$COLS" > <xsl:if test="(position() mod 2 = 0)"> <xsl:attribute name="style">background-color: #FFF8C6</xsl:attribute> </xsl:if> <xsl:copy-of select="exp_resp" /> </textarea> </td> <td> <textarea rows="$ROWS" cols="$COLS" > <xsl:if test="(position() mod 2 = 0)"> <xsl:attribute name="style">background-color: #FFF8C6</xsl:attribute> </xsl:if> <xsl:copy-of select="resp" /> </textarea> </td> <td> <xsl:choose> <xsl:when test="normalize-space(resp/fault)=normalize-space(exp_resp/fault)"> <xsl:call-template name="STATUS_DETECTION"> <xsl:with-param name="my-param" select="'S'" />
</xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="STATUS_DETECTION"> <xsl:with-param name="my-param" select="'F'" />
^^^^</xsl:call-template> </xsl:otherwise> </xsl:choose> </td> </tr> </xsl:for-each>
<xsl:variable name="result"> <xsl:for-each select="report/result"> <xsl:if test="normalize-space(resp/fault)=normalize-space(exp_resp/fault)"> <xsl:call-template name="STATUS_DETECTION"> <xsl:with-param name="my-param" select="S" />
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] No of Times Named Templat, Senthilkumaravelan K | Thread | Re: [xsl] No of Times Named Templat, Senthilkumaravelan K |
Re: [xsl] No of Times Named Templat, Senthilkumaravelan K | Date | Re: [xsl] No of Times Named Templat, Senthilkumaravelan K |
Month |