Wednesday, April 18, 2012

Format rows color alternatively

Sample Code:
<?if@row: position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">blue</xsl:attribute><?end if?>

<?if@row: position() mod 2=1?> <xsl:attribute name="background-color" xdofo:ctx="incontext">red</xsl:attribute><?end if?>

RTF Template:
 PDF Output:
Sample Files:
RTF :FormatRows
XML: EmployeeListing.xml
Related Posts Plugin for WordPress, Blogger...