RE: [xml-dev] Modular schemas.

From
Michael Kay <>
To
'Olivier Rossel' <>,
Date
2010-01-11T14:50:24
ID
<37C500F890214FEDA59BBF727FEA5B9B@Sealion>
Thread
RE: [xml-dev] Modular schemas.
> 
> Unfortunately, this schema is invalid : It is illegal to 
> create an empty "optionalAttribute_elements" group.
> What is the correct way to define a group that contains 
> nothing? or just text?
> 

<xs:group name="optionalAttribute_elements">
  <xs:sequence/>
</xs:group>

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay