Closed b4skyx closed 12 months ago
Hi, It looks like the Autosar xsd you are looking at is not original. In the xsd files I have the definition looks different: VALUE has the type TIME-VALUE
<xsd:element maxOccurs="1" minOccurs="0" name="VALUE" type="AR:TIME-VALUE">
<xsd:annotation>
<xsd:documentation>Average value of a date (in seconds)</xsd:documentation>
<xsd:appinfo source="tags">mmt.qualifiedName="TimeRangeType.value";pureMM.maxOccurs="1";pureMM.minOccurs="1"</xsd:appinfo>
</xsd:annotation>
</xsd:element>
and a TIME-VALUE is ultimately an xsd:double.
You can download the latest official xsd file here: https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_MMOD_XMLSchema.zip
Oh yes you're right. The xsd file I referred to was generated by lemmix server. The original autosar template does defines it as double. Changing the CharacterData to Double solved the issue. Thanks for pointing me to the right direction 😄
Error when trying to set CharacterData for Autosar Tag VALUE. Error: IncorrectContentType
Desired Behavior: CharacterData should be set for VALUE as element VALUE is of type CharacterData
The autosar xsd template defines VALUE tag as following:
To reproduce the Error the sample program can be used:
Sample Output:
Desired Output: test.arxml should be written with CharacterData of VALUE element set.
rust version: rustc 1.72.1 autosar-data = "0.11.0"