<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" > <xsl:template name="DYSAVRINDATA"> <xsl:param name="ReportType" /> <BR></BR> <p class="tagname"> <xsl:text>AVR DATA</xsl:text> </p> <TABLE BORDER="1" class="sample" > <TR class="header"> <xsl:for-each select="TITLES/*"> <TD> <xsl:value-of select="."/> </TD> </xsl:for-each> </TR> <xsl:for-each select="DYSAVRINDATAROWS_DATA/ROWDATA"> <xsl:choose> <xsl:when test="$ReportType = 1"> <TR class="datacellone"> <xsl:variable name="childnodes" select="*"/> <!--all children--> <xsl:for-each select="$childnodes"> <TD> <xsl:value-of select="."/> </TD> </xsl:for-each> </TR> </xsl:when> <xsl:otherwise> <xsl:for-each select="CASE_NO"> <tr> <xsl:attribute name="bgcolor"> <xsl:call-template name="color"> <xsl:with-param name="ref"> <xsl:value-of select="@ref" /> </xsl:with-param> </xsl:call-template> </xsl:attribute> <!--<TD> <xsl:value-of select="@id" /> </TD>--> <xsl:variable name="childnodes" select="*"/> <xsl:for-each select="$childnodes"> <TD > <xsl:value-of select="."/> </TD> </xsl:for-each> </tr> </xsl:for-each> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:apply-templates/> </TABLE> </xsl:template> </xsl:stylesheet>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)