W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

RE: attribute validation

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Tue, 23 Oct 2001 14:11:56 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB907457@red-msg-12.redmond.corp.microsoft.com>
To: "Rajendra" <rajendrabp@samyog.com>, <xmlschema-dev@w3.org>
If the datatype of the attribute is defined as xsd:string or a datatype derived from xsd:string then 
the empty string is a legal value and will validate.  Otherwise it will not.

	-----Original Message----- 
	From: Rajendra [mailto:rajendrabp@samyog.com] 
	Sent: Mon 10/22/2001 10:34 PM 
	To: xmlschema-dev@w3.org 
	Subject: attribute validation
	hi there ,
	   let me give an example ...
	  <xs:attribute name="name" type="xs:string" use="required"/>
	 the above example is definition of attribute element of an element called column.Since attribute name is required in every instance of column element it is defined as required.I want to know is it possible to validate this attribute value when it is assigned null value 
	such as this
	<column name =""/>  
	I do not want any null values to be enrtered over there....at least some text string should be there ...so how to do this validation??????
Received on Tuesday, 23 October 2001 17:16:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:54 UTC