Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Is it possible (simpleType or complexType)? >Thread Next - RE: Facets SV: empty elements and xsd:stringTo: 'George Cristian Bina' <george@---------.---> Date: 2/21/2005 4:12:00 PM Okay thanks George, But I'm wondering now, does this mean that there are also empty nonNegativeIntegers and the like? Best Regards, Bryan Rasmussen -----Oprindelig meddelelse----- Fra: George Cristian Bina [mailto:george@o...] Sendt: 21. februar 2005 13:07 Til: Bryan Rasmussen Cc: xmlschema-dev@w... Emne: Re: empty elements and xsd:string Hi Bryan, That is an empty string. For instance the XML Schema specification part = 2 contains an example that defines a non empty string so it is clear that the empty string is accepted by xs:string. http://www.w3.org/TR/xmlschema-2/ 4 Datatype components 4.3 Constraining Facets 4.3.2 minLength http://www.w3.org/TR/xmlschema-2/#rf-minLength Example The following is the definition of a =B7user-derived=B7 datatype which requires strings to have at least one character (i.e., the empty string = is not in the =B7value space=B7 of this datatype). <simpleType name='non-empty-string'> <restriction base='string'> <minLength value='1'/> </restriction> </simpleType> Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger www.---.com Bryan Rasmussen wrote: > > I've encountered validators which accept an empty element the content = of > which is specified as being of type xsd:string. This strikes me as = being > wrong, and references to why it would be okay? > > > From george@o... Mon Feb 21 15:42:33 2005 Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.o | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
