I need XSLT transformation for money.
In input XML data are prices as numbers:
<prices>
<price>1234</price>
<price>1234.5</price>
</prices>
I need to have output XML after XSLT transformation as follows (Czech format):
<prices>
<price>1 234,-</price>
<price>1 234,50</price>
</prices>
Can it be done using XSLT? Thank you very much.
Edit: I’m using XSLT 2.0.
This transformation (in both versions of XSLT):
when applied on the provided XML document:
produces the wanted, correct result: