#218 New and old style ODD produce inconsistent outputs

AMBER
closed-invalid
5
2010-08-10
2010-08-10
Lou Burnard
No

An ODD which defines a schema by inclusion generates a schema which is different from one defined by exclusion, even if the elements contained by both are identical. Compare the schemas generated from teilite.odd and teilite_ns.odd in P5/Exemplars: in the latter, components of the various model.foo_sequence patterns are given in alpha order, in the former they are given in order of declaration. This means that a document which conforms to the schema generated for one won't conform to the schema generated for the other. It's debatable which is right, but they ought to be consistent. Unless we claim that the "order of declaration" default was a bug.

Discussion

  • Lou Burnard
    Lou Burnard
    2010-08-10

    • status: open --> closed-invalid
     
  • Lou Burnard
    Lou Burnard
    2010-08-10

    Ah! The order is determined by the order of the <elementRef>s in the ODD file. I had sorted them alphabetically in my test file, so it's not surprising they come out in that order.