ddialliance / DdiToCogs

Convert DDI 3.x schemas to a Cogs data model
MIT License
0 stars 0 forks source link

Empty CSV file when object contains only attributes #1

Open spuddybike opened 4 years ago

spuddybike commented 4 years ago

The current functionality skips outputting datatypes where there are only properties. Attributes and properties are not differentiated in the model, so should be output irrespective

spuddybike commented 4 years ago

The following objects have been identified: BasicIncrementType (endValue, increment, startValue) ContentType (isPlainText, scope, textFormat,xhtml:BlkNoForm.mix) MeasureDimensionValueType (arrayOrder, dimensionValue) ResponseCardinalityType (maxiumumResponses, minimumResponses) SelectDimensionType (allValues, rangeMaximum, rangeMinimum, rank, specific Value) ValueType (xml:space)

wlthomas commented 3 years ago

the revision processed on 2022-05-03 corrected the missing content issues for: BasicIncrementType (endValue, increment, startValue) MeasureDimensionValueType (arrayOrder, dimensionValue) ResponseCardinalityType (maxiumumResponses, minimumResponses) SelectDimensionType (allValues, rangeMaximum, rangeMinimum, rank, specific Value)

ValueType is still missing xml:space (discussed today as possibly a missing definition for this xml type)

ContentType is still missing some attributes and the choice item of xhtml:

<xs:complexType mixed="true" name="ContentType">
  <xs:choice maxOccurs="unbounded" minOccurs="0">

miss </xs:choice> ok ok ok ok ok miss miss miss </xs:complexType>

spuddybike commented 3 years ago

ContentType is using StringType as the basis for conversion. However, StringType does not include: isPlainText, scope, textFormat, is this a feature or a bug? If its a bug - need some additional code to cope with this xhtml:BlkNoForm.mix is not being carried over, because the XHTML is being excluded ?by design?

wlthomas commented 3 years ago

Once again I can't read minds. These attributes were not on a StingType in DDI-L 3.3, they are part of the listed attributes in complexType. So it looks like some were added and some weren't