Re: [Serialization] IBM-SE-006: Schema used in round-tripping

After further discussion, it appears that it is not sufficient to use the 
in-scope-schema-definitions (ISSD) during round-tripping (serialization 
and re-parsing) of a data model instance. Round-tripping is used in 
validation, which in turn is used in every element constructor. It is 
necessary for round-tripping to preserve the type annotation of an element 
node, which may not be known in the ISSD. I think the schema used during 
round-tripping needs to be the union of the ISSD and the schema(s) from 
which the type annotations of the nodes were originally derived (called 
the "data model schema" in Section 2.2.5, Consistency Constraints).

--Don Chamberlin

XML Query/Almaden/IBM@IBMUS 
Sent by:
02/02/2004 04:15 PM


[Serialization] IBM-SE-006: Schema used in round-tripping

Serialization Section 4, "XML Output Method": The paragraph before the 
bullet list says that "if a new tree were constructed by parsing the 
[serialized] XML document and converting it into a data model as described 
in [Data Model], then the new data model would be the same as the starting 
data model." But this conversion process involves validation, which is 
schema-dependent. We need to specify that the schema used in this 
round-trip process is an effective schema consisting of the in-scope 
schema definitions in the static context. 

--Don Chamberlin 

Received on Friday, 6 February 2004 16:33:55 UTC