KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
i wrote a xslt code which converts a xml file to a html file which contains lot of tables, one of the column contains messages(very long messages), but that line starts with either of the two words "Verification Passed" or "Verification failed" My requirement is to make the entire table row red if verification failed and make entire table row green if verification passed <xsl:choose> <xsl:when test="contains(@message,'Verification failed:')"><td bgcolor="#FF0000"> <xsl:value-of select="@Message"/></td></xsl:when> <xsl:when test="contains(@message,'Verification passed:')"><td bgcolor="#00FF00"><xsl:value-of select="@Message"/></td></xsl:when> <xsl:otherwise><td> <xsl:value-of select="@Message"/></td></xsl:otherwise> </xsl:choose>
Tags (comma-separated)
Save Edits
Cancel