The board has been upgrade to the latest version. Please let me know of any problems.
Also, there is a high probability that the forum will move to a different host, but that will happen in 2018.
Thanks, Doug

Displaying Roman Numerals [Quick Tip]

Discuss the powerful Explorer Templates used in the CAT programs
Post Reply
User avatar
LotsOCds
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 548 times
Cheers,
Dave

Gordon K
Posts: 10
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
Rene
Posts: 18
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.
René

Post Reply