W3C home > Mailing lists > Public > public-sml@w3.org > December 2007

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

From: <bugzilla@wiggum.w3.org>
Date: Wed, 12 Dec 2007 17:13:31 +0000
CC:
To: public-sml@w3.org
Message-Id: <E1J2V9H-0007Lq-K0@wiggum.w3.org>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:56:08 UTC