cancel
Showing results for 
Search instead for 
Did you mean: 

XSL-Transformation error

Former Member
0 Kudos

Hi

In a transaction, using the XSL Transformation block with the following xml files as Input and InputXSL (setup as Transaction parameters) I get the mysterious output provided below. For some reason, when the value is less than 1/1000, the decimal separator is suddenly changed from a dot to a comma. MII version is 12.2.2 Build(234) and I have only seen it happen on a single server. Doing the same on another 12.2.2 Build(234) server gives me the correct output with a dot separator for all values.

XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xml>
   <value>1</value>
</xml>

XSL
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xml>
   <value>
      <xsl:value-of select="xml/value div 100"/>
   </value>
   <value>
      <xsl:value-of select="xml/value div 1000"/>
   </value>
   <value>
      <xsl:value-of select="xml/value div 10000"/>
   </value>
</xml>
</xsl:template>
</xsl:stylesheet>

OUTPUT
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<test>0.01</test>
<test>0.0010</test>
<test>0,0001</test>
</xml>

Med venlig hilsen / Best Regards

Jacob Neergaard

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Simon,

Check the JVM version of both servers.

Regards,

Anushree

Former Member
0 Kudos

Hi

Both are running on the same version:

vmtype=sapjvm5

vmVersion=5.1.053