Jump to content

Warping a name type in an element


L8V2L

Recommended Posts

Is this legal:<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="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>

Edited by L8V2L
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...