Serialization of xsd:token allows invalid content in SDO C++
------------------------------------------------------------
Key: TUSCANY-1632
URL: https://issues.apache.org/jira/browse/TUSCANY-1632
Project: Tuscany
Issue Type: Bug
Components: C++ SDO
Reporter: Graham Charters
Priority: Minor
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]