W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

[xmlschema-dev] <none>

From: Nell Golding <nell_golding@hotmail.com>
Date: Thu, 6 Jun 2002 08:51:51 -0400 (EDT)
To: xmlschema-dev@w3.org
Message-ID: <F198OYSwuDCjenPQfTZ00014f47@hotmail.com>



Thank you very much for all your kind and quick answers.
I understand that I should formulate my question more clearly.
Nevertheless I've got the help I needed.
I experienced difficulties with a declaration of the element's content, when 
for example it should contain character data, but must not be empty.
Now I see, that it is necessary to constract new simpleType with a string 
type restriction on minLength.

So, something like this...

<xsd:element name="Name">
     <xsd:simpleType>
	  <xsd:restriction base="xsd:string" >
		<xsd:minLength value="1"/>
	  </xsd:restriction>
     </xsd:simpleType>
</xsd:element>


Best Regards,
Nell G.



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Received on Thursday, 6 June 2002 10:03:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:31 GMT