[Bug 4687] Handling of DTDs when composing an IF document

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4687


virginia.smith@hp.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|editorial                   |needsReview




------- Comment #19 from virginia.smith@hp.com  2007-12-12 17:13 -------
The updated section reads:

5.2.1 Embedded Documents

Documents that are to be embedded in the SML-IF document MUST be embedded as
text or in an encoded format as follows:

   1. If the document is embedded as text, it must be included as the content
of a model/definitions/document/data element if it is a definition document or
a model/instances/document/data element if it is an instance document. There
can be at most one document embedded in each model/*/document/data element.
   2. If the document is embedded in an encoded format, then the octet stream
representing the document MUST be encoded in base64 format. The resultant data
stream MUST be embedded as the content of a
model/definitions/document/base64Data element if it is a definition document or
a model/instances/document/base64Data element if it is an instance document.
There can be at most one document embedded in each model/*/document/base64Data
element. Documents that contain a DTD MUST be embedded in this encoded format.

When extracting an embedded document that is contained in a base64Data element,
an SML-IF consumer MUST decode the content of the base64Data element first and
then process the resulting document as an embedded instance document. All
embedded instance documents not encoded in base64 MUST be processed as if they
contained the same DTD as the one specified on the model element (if present).
If model/*/document/data contains no child element or
model/*/document/base64Data has empty content then the SML-IF consumer MUST
treat the document as if it is not part of the interchange set.

Received on Wednesday, 12 December 2007 17:13:42 UTC