Closed odungern closed 3 years ago
@oalt @oeichmann @S-Ruesch : What do you think?
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.
@oalt @oeichmann : In v1.1 I would like to discontinue the xhtml dataType ... or at least mark 'deprecated'.
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.
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