This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5247 - <data> without a sub-element
Summary: <data> without a sub-element
Alias: None
Product: SML
Classification: Unclassified
Component: Interchange Format (show other bugs)
Version: FPWD
Hardware: PC Windows XP
: P2 normal
Target Milestone: LC
Assignee: Kumar Pandit
QA Contact: SML Working Group discussion list
Keywords: resolved
Depends on: 5047
  Show dependency treegraph
Reported: 2007-11-05 16:44 UTC by Sandy Gao
Modified: 2007-12-13 19:38 UTC (History)
0 users

See Also:


Description Sandy Gao 2007-11-05 16:44:36 UTC
The current IF schema allows <data> to not have any child element. 2 questions:
- Should this be allowed (see discussion in bug 5047)
- If yes, what does it mean?

The IF spec needs to be clear about these 2 questions.
Comment 1 Pratul Dublish 2007-11-12 06:03:34 UTC
Comment #10 in 5047 has a scenario for <data> without a child element. <data> without a child element means that the document is missing from the SML IF. 
Comment 2 Virginia Smith 2007-11-15 20:11:46 UTC
Resolution: Agreed to empty <data> element. Mark as editorial - Kumar to come back to group with proposed text.
Comment 3 Valentina Popescu 2007-11-21 18:14:41 UTC
Changes for this defect may be already covered under
Comment 4 Sandy Gao 2007-11-22 15:08:35 UTC
What I had in mind to resolve this bug is to add to section 5.2.1 something similar to what's in 5.2.2:

If a <data> contains no child element, then the SML-IF consumer MUST treat the embedded document as if it is not part of the interchange set.
Comment 5 Kumar Pandit 2007-11-26 08:13:37 UTC
I agree with the concepts expressed in comment# 3 and comment# 4.

Section "5.2.1 Embedded Documents" will change substantially when we address bug# 4687 (Handling of DTDs ...). Therefore, the actual text used will need to be consistent with the language of the rest of the changes in that section.

Comment 6 Kumar Pandit 2007-12-10 02:19:16 UTC
Added the following line to section 5.2.1 Embedded Documents:

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.