Please try the following:
<xsl:value-of select="translate(.,',','.')"/>
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
Currently we have faced issue as a the source xml value parsing with the comma (,) inside the value, (ex - 456,00) but we need to parse that value as a 456.00 when we are transform XML stage, According to I'm tried to few ways but still i'm unable to find a exact way to replace comma(,) to dot(.) , For your reference below i have attached sample Source XML and Current Xslt map, Could you please support to sort out this concern.
Input -
<OrderLineNumber>1</OrderLineNumber>
</PackingNoteDetailsRow>
<Sums>
<TotalPieces>240</TotalPieces>
<NetWeight>108,84</NetWeight>
<GrossWeight>123,84</GrossWeight>
<TotalNoOfCartons>10</TotalNoOfCartons>
</Sums>
Current xslt - Its seems this is not related to XSLT 1
<xsl:for-each select="DOCUMENT/PN_CONTENT/PackingNotesRow/Sums/GrossWeight">
<Weight><xsl:value-of select="replace(.,',','.')"/></Weight>
</xsl:for-each>
Please try the following:
<xsl:value-of select="translate(.,',','.')"/>