<?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>5301</bug_id>
          
          <creation_ts>2007-12-04 08:51:42 +0000</creation_ts>
          <short_desc>add base64Data element to sml-if.xsd</short_desc>
          <delta_ts>2007-12-13 19:24:27 +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>LC</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kumar Pandit">kumarp</reporter>
          <assigned_to name="Kumar Pandit">kumarp</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>17947</commentid>
    <comment_count>0</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-12-04 08:51:42 +0000</bug_when>
    <thetext>The fix to bug# 4687 added the required text to define how a document with DTD is coverted to base64 before embedding it into an smlif document. 

We must also add the corresponding element def to the smlif xsd file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17949</commentid>
    <comment_count>1</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-12-04 09:09:27 +0000</bug_when>
    <thetext>added base64Data element as shown below:

  &lt;xs:complexType name=&quot;documentType&quot;&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element ref=&quot;smlif:docinfo&quot; minOccurs=&quot;0&quot;/&gt;
      &lt;xs:choice&gt;
        &lt;xs:element name=&quot;data&quot; type=&quot;smlif:dataType&quot;/&gt;
        &lt;xs:element name=&quot;base64Data&quot; type=&quot;xs:base64Binary&quot;/&gt;
        &lt;xs:element name=&quot;locator&quot; type=&quot;smlif:locatorType&quot;/&gt;
      &lt;/xs:choice&gt;
...
  &lt;/xs:complexType&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17954</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-12-04 14:42:27 +0000</bug_when>
    <thetext>To be aligned with &quot;data&quot; (and other elements who have simple contents), I think we need to define a type like &quot;base64DataType&quot;, which extends xs:base64Binary by adding an attribute wildcard to allow extensions. That is,

  &lt;xs:complexType name=&quot;base64DataType&quot;&gt;
    &lt;xs:simpleContent&gt;
      &lt;xs:extension base=&quot;xs:base64Binary&quot;&gt;
        &lt;xs:anyAttribute namespace=&quot;##other&quot; processContents=&quot;lax&quot;/&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:simpleContent&gt;
  &lt;/xs:complexType&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17961</commentid>
    <comment_count>3</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-12-05 08:13:47 +0000</bug_when>
    <thetext>changed as suggested in comment# 2:

----
added base64DataType def:

  &lt;xs:complexType name=&quot;base64DataType&quot;&gt;
    &lt;xs:simpleContent&gt;
      &lt;xs:extension base=&quot;xs:base64Binary&quot;&gt;
        &lt;xs:anyAttribute namespace=&quot;##other&quot; processContents=&quot;lax&quot;/&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:simpleContent&gt;
  &lt;/xs:complexType&gt;


----
updated type of base64Data element to base64DataType

  &lt;xs:element name=&quot;document&quot; type=&quot;smlif:documentType&quot;/&gt;
  &lt;xs:complexType name=&quot;documentType&quot;&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element ref=&quot;smlif:docinfo&quot; minOccurs=&quot;0&quot;/&gt;
      &lt;xs:choice&gt;
        &lt;xs:element name=&quot;data&quot; type=&quot;smlif:dataType&quot;/&gt;
        &lt;xs:element name=&quot;base64Data&quot; type=&quot;smlif:base64DataType&quot;/&gt;
        &lt;xs:element name=&quot;locator&quot; type=&quot;smlif:locatorType&quot;/&gt;
      &lt;/xs:choice&gt;
... ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17966</commentid>
    <comment_count>4</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-12-05 14:35:03 +0000</bug_when>
    <thetext>Changes in comment #3 looks good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17968</commentid>
    <comment_count>5</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-12-05 14:41:04 +0000</bug_when>
    <thetext>+1 for change described in comment #3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18064</commentid>
    <comment_count>6</comment_count>
    <who name="Kirk Wilson">kirk.wilson</who>
    <bug_when>2007-12-13 16:28:39 +0000</bug_when>
    <thetext>+1 for resolution as described in comment #3.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>