Conditional formatting in StampBrowse.xsl

Discuss using and your tips/tricks for StampCAT
Post Reply
Johnnyt
Posts: 21
Joined: Sat Aug 22, 2015 7:53 pm

Conditional formatting in StampBrowse.xsl

Post by Johnnyt » Wed Dec 12, 2018 3:49 pm

I guess this applies to any Cat-app if it is doable or not.
I have three date fields in my StampBrowse.xsl. For two of the date fields I want to compare them against the third one. Thereafter I want to highlight and change color to let say green if my conditions kicks in. Conditions goes like this:
If Custom31 has higher (newer) date than PostmarkDate, then highlite (bold) and change color to green for the PostmarkDate.
Or if Custom32 has lower (older) date than PostmarkDate, then highlite (bold) and change color to
blue for the PostmarkDate.
If doable can someone please help me with the code?
---------------------
Dedicated user of
StampCAT
CATraxx
BookCAT
CATVids

Post Reply