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

xs:attribute with empty fixed value

From: Kriegesmann, Peter <Peter.Kriegesmann@softwareag.com>
Date: Tue, 29 Oct 2002 12:39:14 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106023724A8@daemsg02.software-ag.de>
To: xmlschema-dev@w3.org

Dear friends of the XML Schema,

I am not sure if this question has been asked before, at least I was not
able to find an appropriate answer.

Here are my questions:

1. Is it possible to enforce an attribute to have an empty value in all xml
documents when using the following definition in my XML schema:

	<xs:attribute name="emptyOne" type="xs:string" fixed=""/>

2. Additionally: Is it equal to:

	  <xs:attribute name = "emptyOne">
		<xs:simpleType>
		      <xs:restriction base = "xs:string">
		       	<xs:length value = "0"/>
		      </xs:restriction>
		</xs:simpleType>
	  </xs:attribute>  ?


Thank you for your help,

Best regards,
Peter

Peter Kriegesmann
Phone	 06151-921484
Electronic Business Technologies (QE)				Fax
06151-921612
			
Software AG
http://www.softwareag.com
Uhlandstrasse 12				
D-64297 Darmstadt
mailto:Peter.Kriegesmann@softwareag.com	
Received on Tuesday, 29 October 2002 06:39:22 GMT

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