Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

XSL-Transformation error

$
0
0

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


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>