Transforming numbers to Roman numbers by transforming an XML file via XSLT
问题 I have the following xml input: <root> <calc> <arab>42</arab> </calc> <calc> <arab>137</arab> </calc> </root> I want to output the following: <root> <calc> <roman>XLII</roman> <arab>42</arab> </calc> <calc> <roman>CXXXVII</roman> <arab>137</arab> </calc> </root> By writing a XSLT. So far I wrote this XSLT but what else needs to be done to output the right output? <?xml version="1.0" encoding="UTF-8"?> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org