DR 17-0019 — SML: Order of Elements in schemeClr

Charlie Clark charlie.clark at clark-consulting.eu
Wed Nov 15 11:07:46 CET 2017


Am .11.2017, 21:53 Uhr, schrieb Francis Cave <francis at franciscave.com>:

> I hope you will agree that the minOccurs='"1" maxOccurs="1" applies to  
> schemeClr and not to the elements in EG_ColorTransform. In which case  
> the choice of color transform elements can indeed be made repeatedly,  
> allowing any combination, including repetitions of the same transform  
> element.

Hi Francis,

thanks for your patient explanation. I understand the reuse of elements  
via a group and all the XML stuff but we have a situation here that the  
schema doesn't cover sufficiently: potential restrictions within the  
elements that use the element group that are not handled by the schema.  
For a similar situation I refer to the use of the element group in  
21.2.2.47 dLbl. This actually uses two nested element groups. But, as both  
are sequences the ordering is clear and can be validated.

<xsd:group name="Group_DLbl">
     <xsd:sequence>
        <xsd:element name="layout" type="CT_Layout" minOccurs="0"  
maxOccurs="1"/>
        <xsd:element name="tx" type="CT_Tx" minOccurs="0" maxOccurs="1"/>
        <xsd:group ref="EG_DLblShared" minOccurs="1" maxOccurs="1"/>
     </xsd:sequence>
</xsd:group>

If sequences are used here then why not in colours?

I suggest that this be referred back to Microsoft for clarification.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel: +49-211-600-3657
Mobile: +49-178-782-6226


More information about the sc34wg4 mailing list