in xsl pattern matching $or$ and $and$ is not working

admin

Administrator
Staff member
Dear allthis is the code what i have written please help meHere is the XML file<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href=http://forums.devx.com/archive/index.php/"familyxsl.xsl"?><famalies><family><mummy>Gita</mummy><daddy>Ram</daddy></family><family><mummy>Rita</mummy><daddy>Raju</daddy></family></famalies>Here is the XSL file<?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"><xsl:template match="/"><table border="10"><thead><th>mummy</th><th>daddy</th></thead><xsl:for-each select="famalies/family"><tr><xsl:attribute name="STYLE">color:<xsl:if test="daddy [. $eq$'ram'] $or$ mummy[. $eq$ 'Gita']">red</xsl:if><xsl:if test="daddy [. $eq$ 'Raju' $or$ mummy $eq$ 'Rita']">green</xsl:if></xsl:attribute><td><xsl:value-of select="daddy"/></td><td><xsl:value-of select="mummy"/></td></tr></xsl:for-each></table></xsl:template></xsl:stylesheet>eagerly waiting for reply
 
Back
Top