Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

arabic number to roman

Status
Not open for further replies.

mountainbiker

Programmer
Aug 21, 2002
122
GB
any of you have a clever way (other than brute force with <xsl:choose>) to convert an arabic number to its equivalent roman number, e.g.,

Code:
  1      I
  4     IV
  5      V
 10      X
 25    XXV
 
well i guess it don't get any better than <xsl:number>, e.g., something like this

Code:
<xsl:number value='1000' format='I'/> will give you [b]M[/b]

now use a little variable action plus the other attributes of <xsl:number> and you got something clever.
 
but not with the darn . i really should preview my submissions. sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top