Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Error in document? Error in document?To: NULL Date: 11/1/2004 7:26:00 PM There seems to be an error in a document.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xsdrefattributeelement.asp
This example will not work. Maybe tokenized one, but can be misleading.
<xs:attributeGroup name="A">
<xs:attribute name="x" type="xs:NCName"/>
<xs:attribute name="y" type="xs:QName"/>
</xs:attributeGroup>
<xs:complexType name="B">
<xs:complexContent>
<xs:restriction base="xs:A">
<xs:attribute name="x" use="required" />
<xs:attribute name="y" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>restriction/@base can not have a name of an
attributeGroup. Simply replace the <attributeGroup> tag with <complexType>,
then it will work.I think the document author actually means <complexType>.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
