Definition on relationships in XML config

Cantor, Scott cantor.2 at osu.edu
Thu Sep 7 12:13:26 UTC 2023


> I couldn't find this relationship definition in the both xsd files.
> Where are all theses relationships defined? Is this only done by the
> java code?

In terms of enforcing them? Yes, that's only in code (and the documentation obviously).

> To have a formal description of the relationships would help to
> implement configuration checker/verifier to find missing links,
> anomalies etc.

Even Java likely has only partial support for the XML Schema features that deal with keyrefs, and most other parsers have none or very broken support for it. Nor do I know how to author them.

Further, I believe those features do not support cross-schema enforcement anyway, which rules out at least one of the use cases.

The fact is that if you're touching these files anything but rarely, you're doing something you shouldn't and should just rethink your approach.

-- Scott




More information about the dev mailing list