Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Noob XSD question >Thread Next - Re: Noob XSD question Re: Noob XSD questionTo: NULL Date: 11/8/2008 7:27:00 PM
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.
>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
>
>> <xs:complexType name="fieldtype">
>> <xs:simpleContent>
>> <xs:extension base="xs:string">
>
>here instead of xs:string as the base type.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
