Great clue! Thanks very much for the help.
Here's what I got...
<xs:simpleType name="rawdata">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="fieldtype">
<xs:simpleContent>
<xs:extension base="rawdata">
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
I don't suppose you could give me some pointers regarding how to
approach making sure the field element name attribute is unique within
a table? Looks like I'm in for a fun evening trying to sort that one
out.
Quote:
>Well what exactly do you want to specify in your schema? A minimum
>length? Then define a simpleType with the minimum length and use that
>simple type name
> Quote:
><xs:complexType name="fieldtype">
> <xs:simpleContent>
> <xs:extension base="xs:string">
| >
>here instead of xs:string as the base type.
|