Jump to content

Warping a name type in an element

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...