L8V2L Posted July 18, 2014 Share Posted July 18, 2014 (edited) 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 July 18, 2014 by L8V2L Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now