Skip to Navigation | Skip to Content

openEHR-Technical mailing list archives

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Archetypes and XML-Schemas


Hi Leonardo,

CKM is using the Java XML Serialiser to generate the XML presentation, 
so it is no surprise you are seeing the same effect there.

I would see the Schemas as the source of truth.
If it is a sequence in the schema then I believe that the order cannot 
simply be changed in the XML.

So, my opinion is that the XML Serialiser is probably wrong here  
(although you may ask how much this order actually matters, practically 
and theoretically)

Mattias Forss (who developed the XML Serialiser I believe), Eric 
Sundvall or Rong Chen may be able to expand on it?

Regards
Sebastian

Moretti Leonardo wrote:
> XMLSerializer.output() (xml-serializer-1.0.1.jar) produce XMLs that 
> are 
> not compliant with openEHR XML-Schemas 
> (http://www.openehr.org/releases/1.0.2/its/XML-schema/index.html).
> Also the xml representation taken from http://openehr.org/knowledge/ 
> are 
> not valid XML instances respect to these schemas (for example 
> <http://jira.noemalife.loc:8080/secure/attachment/15267/openEHR-EHR-OBSERVATION.body_weight.v1.adl>
>  
> openEHR-EHR-OBSERVATION.body_weight.v1 
> <http://jira.noemalife.loc:8080/secure/attachment/15267/openEHR-EHR-OBSERVATION.body_weight.v1.adl>).
>
> The main problem is that the order of the elements is not equals to 
> that 
> one specified in <xs:sequence> blocks of XSDs.
>
> What is "wrong", the implementation or the schemas? The order of the 
> elements in xml representation of an archetype must be fixed?
>
> Thanks
> leo
>
>   

_______________________________________________
openEHR-technical mailing list
openEHR-technical@openehr.org
http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical