Is this legal:

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlnss="http://www.w3.org/2001/XMLSchema">

<xs:annotation>
<xs:documentation>
I'm warping a name simpleType name nameType in an element that have the attribute type with the value of nameType. Is this legal; to warp a name type as so:
</xs:documentation>
</xs:annotation>
<xs:element name="name" type="nameType">
<xs:simpleType name="nameType">
<xs:restriction base="xs:string">
<xs:length value="25"/>
</xs:restriction>
</xs:simplyType>
</xs:element>
</xs:schema>