GfSE / SpecIF

Specification Integration Facility - schema, constraint checker and examples
Apache License 2.0
15 stars 6 forks source link

Remove dataType 'xhtml' ? #40

Closed odungern closed 3 years ago

odungern commented 4 years ago

The distinction between unformatted and formatted text comes from ReqIF. But thinking a little further brings me to the conclusion, that the distinction is irrelevant, because in practice there are formatted property values without formatting and unformatted property values may eventually be displayed as HTML. Also, Markdown is quite popular and a very good choice for formatting text; creating another datatype for Markdown doesn't make sense.

Therefore I propose to eliminate the dataType 'xhtml'. It must be possible to reformat the content without changing the dataType. If someone wants to use the text values, he may decide what to do: strip the formatting to get plain text, convert the formatting to or from Markdown resp. XHTML.

@oalt @oeichmann @S-Ruesch : What do you think? Oskar

odungern commented 4 years ago

@oalt @oeichmann @S-Ruesch : What do you think?

odungern commented 4 years ago

For the SpecIF-Viewer/Editor we have decided to treat the xs:string and xhtml Datatypes alike and to generate only xs:string on export.

odungern commented 3 years ago

@oalt @oeichmann : In v1.1 I would like to discontinue the xhtml dataType ... or at least mark 'deprecated'.

odungern commented 3 years ago

The dataType "xhtml" has been removed from schema v1.1. Instead a text property may have an attribute with enumerated values "plain" or "xhtml". This allows to change the property's format without changing it's dataType. Another reason is, that "xhtml" is not an XML data-type either, which is therefore difficult to transform.