Displaying Roman Numerals [Quick Tip]

Discuss the powerful Explorer Templates used in the CAT programs
Post Reply
User avatar
Posts: 177
Joined: Thu Aug 20, 2015 4:23 am
Location: California, USA

Displaying Roman Numerals [Quick Tip]

Post by LotsOCds » Sat Oct 17, 2015 3:41 pm

It is easy to display numbers as Roman Numerals. Just use the xsl:number element with format="I". The screenshot below uses the code

Code: Select all

<xsl:value-of select="releaseyear"/> ( <xsl:number format="I" value="releaseyear"/> )
to show the release year in both decimal and Roman Numeral formats.
Roman Numerals.png
Roman Numerals.png (125.93 KiB) Viewed 971 times

Gordon K
Posts: 14
Joined: Sun Aug 23, 2015 9:03 am

Re: Displaying Roman Numerals [Quick Tip]

Post by Gordon K » Mon Oct 19, 2015 10:18 am

Thanks Dave. With my rudimentry SQL skills I now have this in Catraxx. Goodness knows why, I seldon ask the shopkeeper for a case of XXIV cans of the cold stuff!
Gordon K

User avatar
Posts: 20
Joined: Sun Aug 23, 2015 4:15 pm
Location: Netherlands

Re: Displaying Roman Numerals [Quick Tip]

Post by Rene » Tue Oct 20, 2015 3:14 pm

Thanks for the tip Dave!
I added this in BookCAT (template BookBrowse) since you'll find Roman numerals for the publication year now and then in old books.

Post Reply