Sorry Tim, I was thinking you had reasons to question the ability of Relax
NG to define the needed constraints.
I just asked to pinpoint just one problem in this context.
But now it is clear that you cannot pinpoint not one problem without any
research.
Thanks, for illustrating this. We can as well close this discussion subject,
because I will not pay you for your arguments.
The reality is that an entire ecosystem will have to be built to prove
its usefulness. I did this over a three year period with XML Schema
1.1.
If you have a desire to use RelaxNG to build a multi-level modelling
ecosystem.
I use OpenEHR as multi-level modeling model.
But I want to translate the datasets to XML, and I am looking for validation.
XML-schema works but it has problems. Especially that complextype rule which brings you to the GUID-thing is difficult.
But I have a workaround for it. Works good and fast.
My situation is different then yours. XML-Schema does not define my eco-system. XML is only a way to use proven technology on a new eco-system.
My eco-system is ADL, AQL and so on. I am perfectly happy with that. I only need to transform from ADL to XSD and from AQL to XQuery.
And back, of course.
Maybe RelaxNG is better. It looks better. I need to study that. I checked the simple data-type constraints, very complete.
Let's say, I bought a book. I am not in a hurry. My solution works, I am looking for improvement.
But right now, there are other things to do.
To translate archetypes to XML-Schema was hard, but is finished. It can be used.
Using the code and experience, I think translating archetypes to RelaxNG is not that hard.
When RelaxNG serves all the ADL constructs, I might change the validation part from XMLSchema to RelaxNG.
Then you either need to go to work doing it or provide
funding for others to do it.
Don't worry, I don't need you to help me.
I was in discussion, and interested in your arguments.
My intuition tells me that there will be problems. Maybe not
intractable problems. I do not know.
You were questioning the ability of RelaxNG to the specific point of constraints.
I wondered were that questioning was based on. You made clear that it was based on nothing then intuition.
But I personally have no reason
to spend my time and energy exploring that possibility. If you are
passionate about it, then go for it. I look forward to your results.
I wonder why that is.
Because, when I look at MLHIM. You don't want to improve it by looking at other schema's.
I would understand if it were dozens.
But it are only three. XML-schema, RelaxNG and Schematron?
Why not do research for you choose one?
In fact you implicitly say that your choice is made on base of intuition. That is a small base.
XML-Schema forces you to the GUID-thing.
For RelaxNG you have a bad intuition about.
And Schematron?
Suppose XML-Schema drops in its version 1.2 the rule which forces you to use GUID's. Do you drop the GUID constructs for complextypes then?
It would be foolish to remain them, in that case, wouldn't it?
And if you drop the GUID-thing for complextypes in case of this supposed XML-schema 1.2, why not looking already at schema's which don't have this dumb XML-schema rule?
I think that the solution for RelaxNG is very elegant.
You know Tim, I am thinking this quite some time.
When you drop the GUID for complextypes thing, all that remains from MLHIM is a Reference Model.
And that Reference Model, it looks very much like the OpenEHR Reference Model, but it is very much simplified. And you added all the HL7 Exception-types.
Maybe your Reference Model is better, maybe it is worst, I cannot judge that. I am not that clever on Reference Models.
But the fact remains that when all the XML-Schema workarounds are dropped, that an OpenEHR-like Reference Model remains.
And of course, not to forget, your archetype-id (CCD-id) is globally unique without any governance. However, I would not favor your solution.
I think that is the reason why you don't want to look at other schemas is that you need the XML-Schema problems to distinguish MLHIM from OpenEHR.
"Excusez le mot", I suspect to see some revanchism.
I think that is a small base for another multi-level eco-system.
Anyway, I wish you good luck and wisdom
Bert