wiki:CmdiNillableFields

Short summary of the proposal:

add a flag "nillable" to each CMDI element (including String, ValueScheme and Pattern) and add a "nillable list" with explicitly declared values in ISOcat (e.g. Unknown and Unspecified), this will lead to instances with nil-valued elements like:

<startDate xsi:nil="true" cmdi:nilMeaning="unspecified" />
<startDate xsi:nil="true" cmdi:nilMeaning="unknown" />

Advantages:

  • using the XML-standard xsi:nil mechanism
  • allows for nil-valued validating fields of an XML type that do not allow the empty string (eg boolean or date)
  • makes the choice for "nil" fully semantically defined
  • leaves the type of the elements at a certain XPath predictable (no <xsd:choice> involved for the element itself, only for the attributes)

As this will use the cmdi: namespace prefix it is suggested to add this to CMDI 1.2

Needed steps:

Timeplan:

  • create a milestone for the CMDI 1.2 tickets and establish a timing (short/mid-term, Twan will make a milestone definition)
Last modified 12 years ago Last modified on 09/14/12 07:24:52