[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
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
           Keywords|editorial                   |resolved
         Resolution|                            |FIXED




------- Comment #25 from virginia.smith@hp.com  2008-01-03 16:31 -------
section now 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
MUST 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 MUST 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
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 Thursday, 3 January 2008 16:31:24 UTC