DRs 10-0022 and DR 10-0024

Chris Rae Chris.Rae at microsoft.com
Wed Jun 1 22:02:12 CEST 2011


Hi all - I've done a bit more research into this (10-0024) and one of these does indeed need to be present. This means that we should take Murata-san's RNG changes to represent that. On the second issue (whether this also applies to control elements) I've researched that as well and it turns out it does. So we have a further prose changes to make (and a further RNG representation of the dependency).

DR 10-0024 is at http://cid-c8ba0861dc5e4adc.office.live.com/view.aspx/Public%20Documents/2010/DR-10-0024.docx

I've attached my final version of the necessary prose changes.

Chris

-----Original Message-----
From: eb2mmrt at gmail.com [mailto:eb2mmrt at gmail.com] On Behalf Of MURATA Makoto
Sent: 06 December 2010 17:22
To: Chris Rae
Cc: e-SC34-WG4 at ecma-international.org; MURATA Makoto (mmurata at japan.email.ne.jp)
Subject: Re: DRs 10-0022 and DR 10-0024

First, this issue applies to not only oleObj elements but also control elements.

>Murata-san, if there's a way we can do this better in RNG, >then we should think about incorporating it there.


Yes.  I propose to change three definitions in transitional pml.rnc as follows:

p_AG_Ole =
  attribute name { xsd:string }?,

  ## default value: false
  attribute showAsIcon { xsd:boolean }?,
  r_id?,
  attribute imgW { a_ST_PositiveCoordinate32 }?,
  attribute imgH { a_ST_PositiveCoordinate32 }?

p_CT_OleObject =
  p_AG_Ole,
  attribute progId { xsd:string }?,
  (element embed { p_CT_OleObjectEmbed }
   | element link { p_CT_OleObjectLink }),
  (element pic { p_CT_Picture } |  attribute spid { a_ST_ShapeID })

p_CT_Control =
  p_AG_Ole,
  element extLst { p_CT_ExtensionList }?,
  (element pic { p_CT_Picture } |  attribute spid { a_ST_ShapeID })



Accordingly, I would like to change three definitions on transitinoal pml.xsd as follows:

  <xsd:attributeGroup name="AG_Ole">
    <xsd:attribute name="name" type="xsd:string" use="optional" default=""/>
    <xsd:attribute name="showAsIcon" type="xsd:boolean" use="optional"
default="false"/>
    <xsd:attribute ref="r:id" use="optional"/>
    <xsd:attribute name="imgW" type="a:ST_PositiveCoordinate32" use="optional"/>
    <xsd:attribute name="imgH" type="a:ST_PositiveCoordinate32" use="optional"/>
  </xsd:attributeGroup>


  <xsd:complexType name="CT_OleObject">
    <xsd:sequence>
      <xsd:choice minOccurs="1" maxOccurs="1">
        <xsd:element name="embed" type="CT_OleObjectEmbed"/>
        <xsd:element name="link" type="CT_OleObjectLink"/>
      </xsd:choice>
      <xsd:element name="pic" type="CT_Picture" minOccurs="0" maxOccurs="1"/>
    </xsd:sequence>
    <xsd:attributeGroup ref="AG_Ole"/>
    <xsd:attribute name="spid" type="a:ST_ShapeID" use="optional"/>
    <xsd:attribute name="progId" type="xsd:string" use="optional"/>
  </xsd:complexType>


  <xsd:complexType name="CT_Control">
    <xsd:sequence>
      <xsd:element name="extLst" type="CT_ExtensionList" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="pic" type="CT_Picture" minOccurs="0" maxOccurs="1"/>
    </xsd:sequence>
    <xsd:attributeGroup ref="AG_Ole"/>
    <xsd:attribute name="spid" type="a:ST_ShapeID" use="optional"/>
  </xsd:complexType>

--
Cheers,
Makoto<EB2M-MRT at asahi-net.or.jp>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DR 10-0024 proposed changes.docx
Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Size: 56943 bytes
Desc: DR 10-0024 proposed changes.docx
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20110601/b981ce81/attachment-0001.bin>


More information about the sc34wg4 mailing list