Greetings.
Below is the schema snippet I am trying to explore attributegroups and attribute's use property. However I am getting a validation error saying "undefined value for base encountered", pointing to <xs:restriction>. Please help.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:attributeGroup name="grp">
<xs:attribute name="x" type="xs:string"/>
<xs:attribute name="y" type="xs:string"/>
<xs:attribute name="z" type="xs:string"/>
</xs:attributeGroup>
<xs:complexType name="A">
<xs:complexContent>
<xs:restriction base="xs:grp">
<xs:attribute name="x" use="required"/>
<xs:attribute name="y" use="prohibited"/>
<xs:attribute name="z" use="required"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...