Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1632

Serialization of xsd:token allows invalid content in SDO C++

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • C++-SCA-Next
    • C++ SDO
    • None

    Description

      I can define an SDO based on an xml schema which uses the type xsd:token. This is mapped to a String SDO type. I can then create an SDO based off this model and set the string value of that property to something like " foo bar ". This is invalid against the schema (xsd:token), but valid against the SDO model (string), so I wouldn't necessarily expect an error or warning at this point. I can then write out the SDO as XML and it writes out the string value " foo bar " which is not valid against the xml schama. I would expect the data to either be modified to be serialized out following the schema (e.g. "foo bar"), or some kind of warning/error to be generated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gcharters Graham Charters
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: