Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Restricting attribute use from optional to required [Thread Next] RE: Restricting attribute use from optional to requiredTo: =?iso-8859-2?Q?'Jan_P=F8idal'?= <jan.pridal@-----.--->, Date: 8/28/2009 9:06:00 AM > So basically you're telling me that I don't have to repeat > all attributes from attributeGroup in restriction and it is > sufficient to just list the changed ones, that is the 'label' > attribute in my case? > > <xsd:complexType name="parentWithReqLabelAttr"> <xsd:complexContent> > <xsd:restriction base="parent"> > <xsd:group ref="commonElements"/> > <xsd:attribute name="label" type="xsd:string" use="required"/> > <!-- no need to list all remaining attributes from > 'attributes' group --> > </xsd:restriction> > </xsd:complexContent> > </xsd:complexType> > Correct. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
