Hi all,
I am trying to copy an integer value in an attribute with the following
copy:
<copy>
<from>$counterParam</from>
<to>$n0_PAAM_data_in.body/xsd:parameterSet/@id</to>
</copy>
Where
<variable messageType="xsd:paamInput" name="n0_PAAM_data_in" />
<variable name="counterParam" type="xs:integer" />
and paamInput schema declares the attribute with a:
<xsd:attribute name="id" type="xsd:integer" use="optional"/>
The problem is that final result is:
<?xml version="1.0" encoding="UTF-8"?>
<PAAM_in xmlns="http://www.a-ware.org/test/xsd"
xmlns:xsd="http://www.a-ware.org/test/xsd">
<templateFile>pluto</templateFile>
<parameterSet id="1.0"> <----------
<xsd:parameter>
<xsd:name>string1</xsd:name>
<xsd:value>string1</xsd:value>
</xsd:parameter>
</parameterSet>
</PAAM_in>
While before the copy it was:
<parameterSet id="1">
Obviously the final message is invalid because the field that should be
an integer, is represented with a dot.
Is this a bug or am I doing something wrong?
thanks for your help,
Luca