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 5301 - add base64Data element to sml-if.xsd
Summary: add base64Data element to sml-if.xsd
Status: RESOLVED FIXED
Alias: None
Product: SML
Classification: Unclassified
Component: Interchange Format (show other bugs)
Version: LC
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Kumar Pandit
QA Contact: SML Working Group discussion list
URL:
Whiteboard:
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2007-12-04 08:51 UTC by Kumar Pandit
Modified: 2007-12-13 19:24 UTC (History)
0 users

See Also:


Attachments

Description Kumar Pandit 2007-12-04 08:51:42 UTC
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.
Comment 1 Kumar Pandit 2007-12-04 09:09:27 UTC
added base64Data element as shown below:

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

  <xs:complexType name="base64DataType">
    <xs:simpleContent>
      <xs:extension base="xs:base64Binary">
        <xs:anyAttribute namespace="##other" processContents="lax"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
Comment 3 Kumar Pandit 2007-12-05 08:13:47 UTC
changed as suggested in comment# 2:

----
added base64DataType def:

  <xs:complexType name="base64DataType">
    <xs:simpleContent>
      <xs:extension base="xs:base64Binary">
        <xs:anyAttribute namespace="##other" processContents="lax"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>


----
updated type of base64Data element to base64DataType

  <xs:element name="document" type="smlif:documentType"/>
  <xs:complexType name="documentType">
    <xs:sequence>
      <xs:element ref="smlif:docinfo" minOccurs="0"/>
      <xs:choice>
        <xs:element name="data" type="smlif:dataType"/>
        <xs:element name="base64Data" type="smlif:base64DataType"/>
        <xs:element name="locator" type="smlif:locatorType"/>
      </xs:choice>
... ...
Comment 4 Sandy Gao 2007-12-05 14:35:03 UTC
Changes in comment #3 looks good.
Comment 5 Valentina Popescu 2007-12-05 14:41:04 UTC
+1 for change described in comment #3
Comment 6 Kirk Wilson 2007-12-13 16:28:39 UTC
+1 for resolution as described in comment #3.