That type definition is not valid. You can't restrict the integer type
and try to add attributes at the same time.
I'm not sure what it is trying to accomplish, but if the idea is for the
product element to contain an integer, and also have a prodid attribute
that is a positive integer, it should look like this:
<xs:element name="product">
<xs:complexType >
<xs:simpleConte nt>
<xs:extension base="xs:intege r">
<xs:attribute name="prodid" type="xs:positi veInteger"/>
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
Hope that helps,
Priscilla
----------------------------------
Priscilla Walmsley
Author, Definitive XML Schema
http://www.datypic.com
----------------------------------
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!