DR 09-0244: PML, OLE objects: CT_OleObject is defined incorrectly

Shawn Villaron shawnv at microsoft.com
Mon Jun 8 04:16:17 CEST 2009


Here is my proposed response for this defect report:

DR 09-0244- PML, OLE objects: CT_OleObject is defined incorrectly
Part 1, Schema Change Required

   <xsd:complexType name="CT_OleObject">

      <xsd:choice minOccurs="1" maxOccurs="1">

         <xsd:element name="embed" type="CT_OleObjectEmbed"/>

         <xsd:element name="link" type="CT_OleObjectLink"/>

         <xsd:element name="pic" type="CT_Picture"/>
</xsd:choice>

      <xsd:element name="pic" type="CT_Picture" minOccurs="1" maxOccurs="1"/>

      <xsd:attributeGroup ref="AG_Ole"/>

      <xsd:attribute name="progId" type="xsd:string" use="optional"/>

   </xsd:complexType>

Part 1, Relax NG Change Required

p_CT_OleObject =

  p_AG_Ole,

  attribute progId { xsd:string }?,
  element pic { p_CT_Picture },

  (element embed { p_CT_OleObjectEmbed }

   | element link { p_CT_OleObjectLink }

   | element pic { p_CT_Picture })

Part 4, Schema Change Required

   <xsd:complexType name="CT_OleObject">

      <xsd:choice minOccurs="1" maxOccurs="1">

         <xsd:element name="embed" type="CT_OleObjectEmbed"/>

         <xsd:element name="link" type="CT_OleObjectLink"/>

         <xsd:element name="pic" type="CT_Picture"/>
</xsd:choice>

      <xsd:element name="pic" type="CT_Picture" minOccurs="0" maxOccurs="1"/>

      <xsd:attributeGroup ref="AG_Ole"/>

      <xsd:attribute name="progId" type="xsd:string" use="optional"/>

   </xsd:complexType>

Part 4, Relax NG Change Required

p_CT_OleObject =

  p_AG_Ole,

  attribute progId { xsd:string }?,
  element pic { p_CT_Picture },

  (element embed { p_CT_OleObjectEmbed }

   | element link { p_CT_OleObjectLink }

   | element pic { p_CT_Picture })


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20090607/fd44e165/attachment.htm>


More information about the sc34wg4 mailing list