ISO-TC211 / StandardsTracker

This GitHub repository lets you - our users - log and track issues that you find with our standards and other document. Tag the issue with the standard or standards effected; we will assign it to the relevant group(s) within TC 211.
11 stars 0 forks source link

ISO 19115-1 PT_FreeText: discrepancy between UML and XML? #468

Closed heidivanparys closed 1 month ago

heidivanparys commented 1 year ago

Is there a discrepancy between the UML model for PT_FreeText and the XML schema?

image

<complexType name="PT_FreeText_PropertyType">
    <complexContent>
      <extension base="gco:CharacterString_PropertyType">
        <sequence minOccurs="0"><!-- minOccurs does not match the multiplicity? -->
          <element ref="lan:PT_FreeText"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

Should that multiplicity be 0..* in the UML model, in order to have additional localised strings optional, and to make the XML implementation match? Or am I overlooking something?

I created this issue because of https://github.com/INSPIRE-MIF/application-schemas/issues/69 (note that INSPIRE uses the older schemas from ISO 19139).

ejbleys commented 1 month ago

The in this context allows users to provide a nilReason rather than actual values. The minOccurs is 1 in the line

ejbleys commented 1 month ago

\<element name="