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.
Ashok

	-----Original Message----- 
	From: Rajendra [mailto:rajendrabp@samyog.com] 
	Sent: Mon 10/22/2001 10:34 PM 
	To: xmlschema-dev@w3.org 
	Cc: 
	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??????
	 
	regards,
	rajendra
	 
	 
	 
	 
	 
	 
	        
Received on Tuesday, 23 October 2001 17:16:54 GMT

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