<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>5272</bug_id>
          
          <creation_ts>2007-11-16 21:28:31 +0000</creation_ts>
          <short_desc>Can a data element contain more than one document ?</short_desc>
          <delta_ts>2007-11-29 19:31:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SML</product>
          <component>Interchange Format</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Valentina Popescu">popescu</reporter>
          <assigned_to name="Valentina Popescu">popescu</assigned_to>
          
          
          <qa_contact name="SML Working Group discussion list">public-sml</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17783</commentid>
    <comment_count>0</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-11-16 21:28:31 +0000</bug_when>
    <thetext>I am going through the IF xsd file and the IF spec and could not find anywhere specified that a data element should contain one and only one instance of a definition or instance document.
Since this is not clearly stated and since the data element allows any content, somebody may be inclined to &apos;group&apos; documents under a data element (I was asked by an external person if the spec allows this)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17784</commentid>
    <comment_count>1</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-11-16 21:53:58 +0000</bug_when>
    <thetext>Just after I opened this defect I noticed this under section 5.2 which covers what  I thought was missing ( my search for &apos;data&apos; element occurrences did not return this section)

Section 5.2 :

Each document in the interchange set MUST be represented in the SML-IF document &gt;&gt;by a separate document element&lt;&lt; as follows: 

   1. Each definition document in the interchange set MUST appear as a child of a model/definitions/document element. The order of the document children is not significant.
   2. Each instance document in the interchange set MUST appear as a child of a model/instances/document element. The order of the document children is not significant.

I am not closing this defect as invalid because:
1. The question I was trying to get answer to is at bit hidden under this section. The fact that only one document can be contained by a data element should be probably stated a bit sooner and be more visible.
2. In the text above, bullet 1 and 2 say that a definition or instance document appears as a child of a model/definitions/document element ; this is incorrect, it should be child of a model/definitions/document/data element
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17785</commentid>
    <comment_count>2</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-11-16 22:43:21 +0000</bug_when>
    <thetext>Agree with Valentina - we should be explicit that a data element can contain AT MOST ONE instance of a definition or instance document. Per Bug 5247, we need to allow the case where a data element has no instance/definition document</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17806</commentid>
    <comment_count>3</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-11-19 21:50:01 +0000</bug_when>
    <thetext>Pls fix as per comment #2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17826</commentid>
    <comment_count>4</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-11-21 18:12:33 +0000</bug_when>
    <thetext>Changes :

- Non-Normative section, Section 4

1. Pseudo schema notation : updated comments to read
     &lt;data&gt;
       xs:any &lt;!At most one definition document goes here&gt;
     &lt;/data&gt;

     &lt;data&gt;
       xs:any&lt;!At most one instance document goes here&gt;
     &lt;/data&gt;

2. Below this schema, replaced :

Every document in the interchange set appears as content of a document element [...]
with
Every document in the interchange set appears as content of a document/data element [...]There can be at most one document contained by a document/data element. 

- Normative section, 5.2 SML-IF Documents :

Replaced:
Each definition document in the interchange set MUST appear as a child of a model/definitions/document element.
with:
Each definition document in the interchange set MUST appear as a child of a model/definitions/document/data element. The model/definitions/document/data element MUST contain at most one definition document.

Replaced:
Each instance document in the interchange set MUST appear as a child of a model/instances/document element.
with:
Each instance document in the interchange set MUST appear as a child of a model/instances/document/data element. The model/definitions/document/data element MUST contain at most one instance document. 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17834</commentid>
    <comment_count>5</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-11-22 16:18:53 +0000</bug_when>
    <thetext>correction to changes described in comment #4


Changes for review:

- Non-Normative section, Section 4

1. Pseudo schema notation : updated comments to read
     &lt;data&gt;
       xs:any &lt;!At most one definition document goes here&gt;
     &lt;/data&gt;

     &lt;data&gt;
       xs:any&lt;!At most one instance document goes here&gt;
     &lt;/data&gt;

2. Below this schema, replaced :

Every document in the interchange set appears as content of a document element
[...]
with
Every document in the interchange set appears as content of a document
element [...] There can be at most one embedded document contained by a document/data element.

- Normative section, 5.2 SML-IF Documents :

Replaced:
Each definition document in the interchange set MUST appear as a child of a
model/definitions/document element.
with:
Each definition document in the interchange set MUST appear as a child of a
model/definitions/document element. There can be at most one definition document embedded in each model/definitions/document/data element. 

Replaced:
Each instance document in the interchange set MUST appear as a child of a
model/instances/document element.
with:
Each instance document in the interchange set MUST appear as a child of a
model/instances/document element. There can be at most one instance document embedded in each model/definitions/document/data element.  

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>