Thanks to all, I agreee with Sebastian, the real point is knowing how much this order actually matters, practically and theoretically! Currently, XML-schemas are the only formal specs of how the xml must be done, so I think we need to be compliant with these!
@Sam Will new XML schema for archetypes be compatible with the current version of schemas? I.e., an archetype expressed in xml, valid respect to XML-schema 1.0.2, will it be valid also respect to new XML-schema? Regards, Leo Sebastian Garde-2 wrote: > > 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 at openehr.org > http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical > > -- View this message in context: http://old.nabble.com/Archetypes-and-XML-Schemas-tp28525479p28533348.html Sent from the openehr-technical mailing list archive at Nabble.com.

