qualipool / swissrets

A swiss real estate transaction standard
https://swissrets.ch
MIT License
26 stars 18 forks source link

Cos-nonambig validation issue #204

Closed jensstalder closed 2 years ago

jensstalder commented 2 years ago

Describe the bug Some parsers are detecting a Cos-nonambig issue on the latest 2.4 schema. This could (depending on implementations) cause systems to opt-out, and not parse the XML.

Cos-nonambig: Gross And Gross (or Elements From Their Substitution Group) Violate "Unique Particle Attribution". During Validation Against This Schema, Ambiguity Would Be Created For Those Two Particles.

Current discussion is on slack: https://qualipool.slack.com/archives/CB28KC4TW/p1636037112000800

jensstalder commented 2 years ago

Tasks

jensstalder commented 2 years ago

Since we are also adding it I guess it would not be inconsistent to also add

Since casasoft uses a bit of PHP we could implement that.

There are other major languages as well though: for Example

They would need to be made from folks that actually know how to implement them. I guess they will become relevant by usage/implementers of the standard.

merrycoder commented 2 years ago

Since we are also adding it I guess it would not be inconsistent to also add

  • [x] Add a validator for PHP

Since casasoft uses a bit of PHP we could implement that.

There are other major languages as well though: for Example

  • [ ] Java
  • [ ] Your favorite language here

They would need to be made from folks that actually know how to implement them. I guess they will become relevant by usage/implementers of the standard.

I can take care of the implementation.