Before the end of 2017 the board will be down for a brief period of time for an upgrade.
Past experience says less than 30 minutes but I can't predict the future.
Also, there is a high probability that the forum will move to a different host, but that will not happen in 2017.

Displaying Roman Numerals [Quick Tip]

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

Displaying Roman Numerals [Quick Tip]

Postby 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 496 times

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

Re: Displaying Roman Numerals [Quick Tip]

Postby 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: 11
Joined: Sun Aug 23, 2015 4:15 pm
Location: Netherlands

Re: Displaying Roman Numerals [Quick Tip]

Postby 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.

Return to “Explorer Templates”

Who is online

Users browsing this forum: No registered users and 1 guest