Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Error in document? [Thread Next] Re: Error in document?To: NULL Date: 11/1/2004 7:42:00 PM Ignore the post. I posted in wrong group. "Han" <hp4444@k...> wrote in message news:u71by0$vEHA.3624@T...... > 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 | |||
|
